You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default request id factory returns a random string:
2020-01-15 15:58:47,238 INFO: [req:O5bvIlU] Processing GET / (__main__:hello)
2020-01-15 15:58:47,950 INFO: [req:xtMacpA] Processing GET / (__main__:hello)
Sometimes I feel like adding request counter would be better:
2020-01-15 15:58:47,238 INFO: [req:xtMac0001] Processing GET / (__main__:hello)
2020-01-15 15:58:47,950 INFO: [req:xtMac0002] Processing GET / (__main__:hello)
I want to keep some random string in the request id so it can be better searched in logs.
Also it can help when logging from multiple processes (each having their own counter) to one log file.
Maybe let's provide an alternative request id factory for this and let users configure this one instead of the default request id factory.
The text was updated successfully, but these errors were encountered:
The default request id factory returns a random string:
Sometimes I feel like adding request counter would be better:
I want to keep some random string in the request id so it can be better searched in logs.
Also it can help when logging from multiple processes (each having their own counter) to one log file.
Maybe let's provide an alternative request id factory for this and let users configure this one instead of the default request id factory.
The text was updated successfully, but these errors were encountered: