View definition

(CustomReceiverInitArgs).XmlCustomAttrs

Defined in github.com/cihub/seelog/dispatch_custom.go

Description

XmlCustomAttrs represent '<custom>' xml config item attributes that start with "data-". Map keys will be the attribute names without the "data-". Map values will the those attribute values.

E.g. if you have a '<custom name="somename" data-attr1="a1" data-attr2="a2"/>' you will get map with 2 key-value pairs: "attr1"->"a1", "attr2"->"a2"

Note that in custom items you can only use allowed attributes, like "name" and your custom attributes, starting with "data-". Any other will lead to a parsing error.

XmlCustomAttrs is referenced in 1 repository

github.com/cihub/seelog