-
Notifications
You must be signed in to change notification settings - Fork 22
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
Deployment #16
Comments
I assume this works in development and not in production? Can you find the class name of |
This is not working even in development. The classname is ActiveSupport::Logger is on rails console. How can I check the value on the deployed app? |
It should work if it is ActiveSupport::Logger. I think you may have forgotten to set it in an initializer. For deployed app, just enter its production console, and |
Here is my initializer MultiLogger.add_logger('my_app', formatter:formatter) if Rails::env == 'production' I have used Rails.logger.my_app.info, etc in my code I got an error saying that logger has no method called my_app |
I am trying to deploy my rails app as a war on jboss. However, I keep getting an error saying that the logger I use in multi_logger is an undefined method of logger.
I use Rails.logger.<my_logger>.info
and I get an error saying
Undefined method <my_logger>
The text was updated successfully, but these errors were encountered: