Closed romkatsu closed 2 years ago
I think it is a good idea.
You can use dependency injection in your handler, where you can get any logger you want.
@romkatsu so... considering @viktorprogger comment, do we need it still?
It seems like the question is settled.
Workers who process messages from the queue are often run through daemons. For example supervisor.
It is very convenient when there is a log file for one worker.
The log file at the same time contains approximately the following:
And I would like to be able to write messages to output from the queue handler.
I suggest transmitting not only a message to the worker, but also a console logger.