Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Feature or enhancement
Allow using instances in the dict passed todictConfig
Pitch
Currently the logging configuration does not allow passing already created instances of e.g.logging.Handler.
However this would be very useful for an application that uses the dict to configure the logger but wants to use aQueueHandler that implements custom logic.
Since thelogging.Handlers andlogging.Filters need to be attached to theQueueListener for logging to files it's almost impossible to set it up properly.
If it would be possible to pass an instance the setup could be simplified a lot.
Previous discussion