Giter VIP home page Giter VIP logo

Comments (5)

lukeasrodgers avatar lukeasrodgers commented on August 19, 2024

@solars did you happen to resolve this issue? I'm getting it in development as well, rails 4.2.1, though strangely only when using webrick as the server--with unicorn, it works fine. EDIT: same issue with thin as rails server.

from log4r.

reidmorrison avatar reidmorrison commented on August 19, 2024

Don't see much activity here anymore, have you tried Semantic Logger?
The rails_semantic_logger gem directly replaces the Rails logger and patches out the formatter calls.

from log4r.

solars avatar solars commented on August 19, 2024

@lukeasrodgers sorry, I must have missed your question - I did resolve it, but I cannot remember how. In case you still have issues I could try to find it though.

I'm still using log4r without problems.

from log4r.

lukeasrodgers avatar lukeasrodgers commented on August 19, 2024

@solars, no worries. We are still using it as well, and it works alright, though we have to jump around some hoops to initialize it correctly (rails 3.2), and Graylog doesn't seem to correctly be able to extract level information from its output. Not sure if that is an issue with our log4r setup, or Graylog. @solars have you run into the same/similar issue, out of curiousity?

from log4r.

solars avatar solars commented on August 19, 2024

@lukeasrodgers
The logger is in a separate gem at the moment (in a singleton class).
I'm initializing it in config/environment.rb and then inside config/environments/production.rb I just do config.logger = MyGem::Logger.instance.log (which is the log4r logger).

Not sure if it's a good way but it works :)

from log4r.

Related Issues (20)

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.