Comments (5)
@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.
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.
@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.
@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.
@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)
- Intermittent error: NoMethodError: undefined method `is_root?' for nil:NilClass
- Test fails for 1.1.10 HOT 1
- Improved documentation HOT 3
- Include license file in the .gem release HOT 2
- LEVEL can't be passed as parameter to yaml cfg file HOT 1
- Adding child logger before initial parent results in unexpected level HOT 1
- Please handle log dirname consistently
- Feature Request: logger methods to always return nil HOT 1
- Can't run examples in 1.1.11
- warning: `+' after local variable or literal is interpreted as binary operator HOT 10
- Prepend not working? HOT 1
- License inconsistencies
- Implement <<
- Please create a new release and upload it HOT 1
- yamlconfigurator issue in Ruby 2.5.0
- log4r-color merge? HOT 2
- make a new release? HOT 3
- Can not be used under Rails 6.
- Is Log4r impacted by latest Log4j security vulnerability? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from log4r.