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

optionally integrate with Rails logger? #1

Open
tardate opened this issue Apr 4, 2013 · 0 comments
Open

optionally integrate with Rails logger? #1

tardate opened this issue Apr 4, 2013 · 0 comments

Comments

@tardate
Copy link
Member

tardate commented Apr 4, 2013

I was originally planning to snap into Rails logger, so it PtLogger would silently step into action when required.

It would be triggered by referencing a story id in the log message. e.g.

Rails.logger.info "this message just gets logged normally"
Rails.logger.info "but this message also gets logged on PT:123456"

I had second thoughts about this though, since 99% of the time it would do nothing, and you should only be logging to PT in very, very selective circumstances.

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

1 participant