Code Monkey home page Code Monkey logo

log4r-gelf's People

Contributors

nirvdrum avatar wr0ngway avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

log4r-gelf's Issues

NoMethodError (undefined method `bytesize' for #<Log4r::GelfOutputter:0x000000041b09a0>):

Hey,

I'm getting this exception:

NoMethodError (undefined method bytesize' for #<Log4r::GelfOutputter:0x000000041b09a0>): rack (1.5.2) lib/rack/utils.rb:335:inbytesize'
sinatra (1.4.3) lib/sinatra/base.rb:147:in block in finish' sinatra (1.4.3) lib/sinatra/base.rb:147:ineach'
sinatra (1.4.3) lib/sinatra/base.rb:147:in inject' sinatra (1.4.3) lib/sinatra/base.rb:147:infinish'
sinatra (1.4.3) lib/sinatra/base.rb:893:in call!' sinatra (1.4.3) lib/sinatra/base.rb:870:incall'
newrelic_rpm (3.6.8.164) lib/new_relic/rack/error_collector.rb:43:in call' newrelic_rpm (3.6.8.164) lib/new_relic/rack/browser_monitoring.rb:16:incall'
newrelic_rpm (3.6.8.164) lib/new_relic/rack/agent_hooks.rb:22:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward'
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:inlookup'
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall'
rack (1.5.2) lib/rack/nulllogger.rb:9:in call' rack (1.5.2) lib/rack/head.rb:11:incall'
sinatra (1.4.3) lib/sinatra/base.rb:175:in call' sinatra (1.4.3) lib/sinatra/base.rb:1949:incall'
sinatra (1.4.3) lib/sinatra/base.rb:1449:in block in call' sinatra (1.4.3) lib/sinatra/base.rb:1726:insynchronize'
sinatra (1.4.3) lib/sinatra/base.rb:1449:in call' actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:inblock in call'
actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in each' actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:incall'
actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in call' newrelic_rpm (3.6.8.164) lib/new_relic/rack/error_collector.rb:43:incall'
newrelic_rpm (3.6.8.164) lib/new_relic/rack/agent_hooks.rb:22:in call' newrelic_rpm (3.6.8.164) lib/new_relic/rack/browser_monitoring.rb:16:incall'
rack-jsonp-middleware (0.0.9) lib/rack/jsonp.rb:24:in `call'

...

Does anyone know what this could be?

Versions are: Ruby 1.9.3, Rails 4, gelf (1.4.0), log4r-gelf (0.9.0)

Thanks a lot!
Christoph

Not compatible with graylog2_exceptions

log4r-gelf has a dependency on gelf ~> 1.1.3, while graylog2_exceptions has a dependency on gelf 1.3. Since these two conflict, they can't both be installed at the same time.

YAML options are expected to be symbols, doesn't match documentation

gelf_outputter.rb has lines like:

    opts['host'] = hash[:host] if hash[:host]

but hash is a Hash, not a HashWithIndifferentAccess. Therefore, options from log4r.yaml are ignored unless specified as symbols. You can either change the gelf_outputter to be like

    opts['host'] = hash['host'] if hash['host']

or change the documentation to say :facility instead of facility in yaml. I vote for the former.

Graylog input type

Which graylog input type should I choose? I've got my other input using GELF UDP, is there a preferred input type for log4r-gelf?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.