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

Use Eliot to generate stdlib log messages? #489

Open
gwerbin opened this issue Aug 20, 2022 · 1 comment
Open

Use Eliot to generate stdlib log messages? #489

gwerbin opened this issue Aug 20, 2022 · 1 comment

Comments

@gwerbin
Copy link

gwerbin commented Aug 20, 2022

Consider the use case of an established web application, which has a nontrivial logging setup involving correlation IDs, integration with some observability platform like Datadog, etc. Migrating such an application to Eliot's entirely separate logging framework would be a tough sell at best, and generally would not be a pragmatic engineering decision, even if Eliot supports a relatively smooth migration path by installing its own handler for stdlib logging.

However, the promise of Eliot's "context-based" and "causal" logging is very enticing. Is there any way that Eliot could be set up to generate logging log entries? One could imagine that Eliot could "install" itself in the form of a logging.Filter that attaches its various metadata items to each log record. Is this something that Eliot can do now, or something that it might be able to do one day?

@MartinBernstorff
Copy link

I think this is incredibly interesting as well!

It would also allow Eliot to be added to library code instead of logging calls. One could imagine it would add "flat" logging info if captured by a logging log, and "causal"/"traced" information if captured by an eliot log.

@itamarst Hope it's OK with a ping here! I tried running through the documentation and code, but didn't find anything on this use case. Did I miss anything? :-)

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