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

Provide a way to tag logging per request. #89

Open
amol- opened this issue Jul 16, 2017 · 2 comments
Open

Provide a way to tag logging per request. #89

amol- opened this issue Jul 16, 2017 · 2 comments

Comments

@amol-
Copy link
Member

amol- commented Jul 16, 2017

Currently when logging there is no way to know which request a log line belongs to, we might want to add a way to allow this. If this is not possible through standard logging module (which I suspect) we might provide (and use everywhere) a tg.log that logs the request id too when it's available.

@amol-
Copy link
Member Author

amol- commented Oct 20, 2019

%(thread)s @ %(process)s format might be a good enough solution for 90% of users. Should it be in the default quickstart?

@kiilerix
Copy link

Yeah, that would perhaps be helpful. Especially if the thread can be tracked all the way from the request comes in. Once you know it, it is quite trivial to add. But having it in the quickstart would remove the need for knowing it.

Something with ordering like %(process)s - %(thread)s would probably be more natural.

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