-
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
Problems on Heroku #13
Comments
I am guessing this is like #8 |
I can try |
Update: So far I was unable to figure out an elegant way to do what I want. My thoughts are these: A. If making any addition or update to multi_logger, it should be a more generic patch rather than a fix for Heroku. Based on this, I was considering having a setting in multi_logger to say "use tagged mode" - and then, people can do something like: # config/initializers/multi_logger.rb
MultiLogger.tagged_mode = Rails.env.production? # or whatever logic suits them B. Then, in "tagged mode", any call to I spent some time on this, but was unable to come up with anything nice. if Rails.env.production?
Rails.logger.info "[:notifier] #{msg}"
else
Rails.logger.notifier.info msg
end I may try again, or stay with this workaround, or look for another approach. |
Hello,
I am working with multi logger for quite some time in development, and in production, and it works nicely and I cant live without it... :)
I am experiencing a weird problem in production, that seems to be related to a Heroku's way of handling logging.
When translated to English, the suspected error says:
RailsStdoutLogging does not know any of the multi-logger logs
I have a log named
notifier
defined withAnd the error log says:
I found this SO post that may be related. It seems (not verified) that Heroku forces stdout logging, so my guess is that all my multi logger calls will fail unless there is support or at least graceful handling of this case. Thoughts? Am I doomed and need to abandon my multi logging?...
I also opened a ticket on Heroku, and will post back here with any results.
The text was updated successfully, but these errors were encountered: