Hello,

I've developed a small solution to enable gelf-rb Logger to integrate with 
formatters. Currently the logger completely ignores the formatter 
attribute. Because of that, gelf logger can't integrate, for example, with 
rails tagged logging. 

In rails, this configuration doesn't work as expected:

config.logger = ActiveSupport::TaggedLogging.new(GELF::Logger.new(host, 
port, 'LAN'))

Because TaggedLogging depends on a custom formatter. 

This is the code to fix 
that: 
https://github.com/Graylog2/gelf-rb/commit/77e2cb08e186470d138184381d9f758ce069b3a1

I'd like to know if I should open a pull request for that. This fixes this 
issue: https://github.com/Graylog2/gelf-rb/issues/51


Best,
Francisco


-- 


Meet us at:
@ *PG Connects*, London, Jan 16-17
@ *Mobile Games Forum*, London, Jan 17-18
@ *GMASA*, Jakarta, Jan 26
@* Casual Connect*, Berlin, Feb 7-9
@* Mobile World Congress*, Barcelona, Feb 27-Mar 2
@* GDC*, San Francisco, Feb 27-Mar 3

Click here <http://www.applift.com> to see all the events we will be 
attending. 

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/c0b469f5-b758-49d7-a383-180bc58f1184%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to