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

[Discussion] Add filename and line number to the default log event object #125

Open
lanxx019 opened this issue Apr 27, 2017 · 1 comment
Labels

Comments

@lanxx019
Copy link
Contributor

Any objection or suggestion on how to add the filename and line number to the default event object? There are definitely other ways you can track down the log entry in source code, but wouldn't it be simpler if we include these information automatically?

@dwbutler
Copy link
Owner

caller_locations looks like a good place to start.

I don't imagine this information would be useful to add to every log message by default. I can only imagine it being useful on log messages for exceptions. But in that case, you could include the backtrace.

If you really need it on every event you could look into patching that into your own customize_event block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants