Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/tagged logging #1

Merged
merged 6 commits into from
Jul 29, 2020

Conversation

dsawa
Copy link
Collaborator

@dsawa dsawa commented Jul 29, 2020

Tagged logging feature from: graylog-labs#81

markglenn and others added 6 commits May 8, 2015 10:17
Implement tagged logging similar to ActiveSupport::TaggedLogging.
Don't use the default_options to pass the tags into the logger.  This
causes the tags field to be sent over to graylog as an array.  Instead
pass the tag names into an attribute called log_tags that matches with
the Rails standard of config.log_tags.
@dsawa dsawa merged commit 4dabce1 into nokaut:tagged-logging Jul 29, 2020
dsawa added a commit that referenced this pull request Jul 31, 2020
* Add tagged logging support

Implement tagged logging similar to ActiveSupport::TaggedLogging.

* Use log_tags attribute on logger

Don't use the default_options to pass the tags into the logger.  This
causes the tags field to be sent over to graylog as an array.  Instead
pass the tag names into an attribute called log_tags that matches with
the Rails standard of config.log_tags.

* Replace Thread#[] with Thread#thread_variable_get/set

* Skip log tags tests for Ruby 1.9

* Fix CI for JRuby

Co-authored-by: Mark Glenn <[email protected]>
Co-authored-by: Marcus Ilgner <[email protected]>
Co-authored-by: Vladimir Kitaev <[email protected]>

Co-authored-by: Mark Glenn <[email protected]>
Co-authored-by: Marcus Ilgner <[email protected]>
Co-authored-by: Vladimir Kitaev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants