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

Logging lograge, remote_syslog #382

Closed
nicpillinger opened this issue Jun 14, 2017 · 3 comments
Closed

Logging lograge, remote_syslog #382

nicpillinger opened this issue Jun 14, 2017 · 3 comments

Comments

@nicpillinger
Copy link

Hello again! We use remote_syslog_logger and papertrail for logging in production and I'm wondering if theres a way to hook into the logging in Shoryuken? Can we replace the logger in use or even mess with the formatting? thanks

@nicpillinger
Copy link
Author

OK this appears to work

Shoryuken::Logging.logger= RemoteSyslogLogger.new('pt_url',id,'logname')

so if I put that in a Shoryuken startup event - I think that has me covered?

@nicpillinger
Copy link
Author

I need to add additional info to the formatter. Again I assume I can override this somehow?

@phstc
Copy link
Collaborator

phstc commented Jun 14, 2017

Shoryuken::Logging.logger = RemoteSyslogLogger.new('pt_url',id,'logname')

Yup. That should do.

@phstc phstc closed this as completed Jun 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants