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
Hi guys, there is a problem, I do not know how to implement this in the context of DI.
Idea:
I want to make it so that I can conveniently list the handlers for the standard library "logging" in the config and assemble them in the container.
I want to install something like in YML:
logger_service: ['console','file']
The standard logging package implies that I have to create two handlers with this configuration. A handler for the console, and for the file. Or not what if logger_service empty
I don't understand how I can make an if and select a handler for my logger?
my current code looks like this and it works, but I do not know how to add a handler creation setting based on what is specified in the configuration
Hi guys, there is a problem, I do not know how to implement this in the context of DI.
Idea:
I want to make it so that I can conveniently list the handlers for the standard library "logging" in the config and assemble them in the container.
I want to install something like in YML:
logger_service: ['console','file']
The standard logging package implies that I have to create two handlers with this configuration. A handler for the console, and for the file. Or not what if logger_service empty
I don't understand how I can make an if and select a handler for my logger?
my current code looks like this and it works, but I do not know how to add a handler creation setting based on what is specified in the configuration
tell me at least an idea how can I create handlers based on the config?
The text was updated successfully, but these errors were encountered: