-
Notifications
You must be signed in to change notification settings - Fork 53
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
Initializer is using wrong Logger base class #29
Comments
Here's a hacky workaround I've been using: in RemoteSyslogLogger::Logger = ActiveSupport::Logger It works because
|
Thanks Mike! I'll stash this for later. We ended up being able to switch back to the Rails standard logger sending to STDOUT, and having the container do the remote syslogging. One less third party dependency. |
I'm interested in switching to this. Can you write up some details or link to a guide? |
Hey Mike, I'll try and get up a technical post at some point, but effectively here is what we did at a high level.
Hope that helps. Feel free to ask more if required. |
I found that
Rails.logger.silence
blocks fail when using this gem. The issues seems to be thatRemoteSyslogLogger.new
instantiates aLogger
, when it should be instantiating anActiveSupport::Logger
. Reference: https://stackoverflow.com/a/38361137The text was updated successfully, but these errors were encountered: