evalphobia / logrus_fluent

fluentd hooks for logrus
Apache License 2.0
45 stars 22 forks source link

Add a way to set a static tag #7

Closed algernon closed 8 years ago

algernon commented 8 years ago

Adds the hook.SetTag function that makes it possible to pre-define a tag. This way a tag does not have to be included in every single message.

With this implementation, the static tag set on the hook overrides whatever may be in the message itself.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.7%) to 83.444% when pulling 3c88cffdd386496566b758d474fa3edc25f4339b on algernon:f/static-tag into 12d8dbadcb812ae575268488f7c08320f3df763d on evalphobia:master.

evalphobia commented 8 years ago

Thanks!