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

All log lines are logged with level INFO #100

Open
donv opened this issue Jan 15, 2013 · 1 comment
Open

All log lines are logged with level INFO #100

donv opened this issue Jan 15, 2013 · 1 comment

Comments

@donv
Copy link

donv commented Jan 15, 2013

Hi!

Using

rails (3.2.11)
trinidad (1.4.4)
trinidad_daemon_extension (0.4.0)
trinidad_jars (1.2.0)

All log statement levels are changed to INFO when logging with Rails.logger.error.

Is this by design?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@kares
Copy link
Member

kares commented Jan 15, 2013

Hi Uwe, yes this kind of is "by design" of JRuby-Rack - it's a bit of a servlet logging heritage as well ...

Theoretically it might be done in a way that maps Ruby Logger levels to JRuby-Rack RackLogger (Java class) levels although not sure what the corner cases for that will be (one is that by default it can not work since servlet logging which is default for all JRuby-Rack apps does not support levels but Trinidad is using JUL instead unless specified otherwise - and there are similar logging levels).
Feel free to report this on JRuby-Rack but do not expect work on this soon ... from me :) as I'm actually trying to bring some (long abandoned) improvements to Trinidad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants