how to use structlog to output #273
Answered
by
sector119
johums-best
asked this question in
Q&A
-
taskiq can use structlog to output ? i have no idea to resolve it.
|
Beta Was this translation helpful? Give feedback.
Answered by
sector119
Feb 19, 2024
Replies: 1 comment 5 replies
-
I'm trying to use middleware for that, "pre_send" is called, but taskiq_task_id and taskiq_task_name doesn't appear at json log (
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
oops, but it works as expected if I put all that stuff at pre_execute, not pre_send method!
{"event":"Syncing payments...","taskiq_task_name":"billing:sync-payments","taskiq_task_id":"43ad252452d4491fa2c941408f9ed0b1","logger":"epsilon-tasks","level":"info","timestamp":"2024-02-19 16:00:23"}