Aceasta va șterge pagina "All handlers". Vă rugăm să fiți sigur.
Of course logs could be write not only to stderr. Generally logger class sends content to all handlers which had been added to the logger by method use_handler(). Handlers is library in the logger is Set not list, that mean one handler instance could be added only one. All handlers are childs of the handler class. If You want, for example, write logs to database, just create own simple handler.
It is super simple, it does not take any parameter.
logger.stdout_handler()
logger.stderr_handler()
It take file used to write logs into when had been creating.
import pathlib
logger.file_handler(pathlib.Path("file.log"))
Aceasta va șterge pagina "All handlers". Vă rugăm să fiți sigur.