picologging icon indicating copy to clipboard operation
picologging copied to clipboard

No logging.shutdown() function

Open pamelafox opened this issue 2 years ago • 0 comments

CPython logging has a shutdown function: https://docs.python.org/3/library/logging.html#logging.shutdown

The documentation describes it as taking 0 arguments, but it actually takes a handlers argument which defaults to the module internal _handersList, a list of handlers. Picologging doesnt have _handlersList, but it does have root, so I think it should be able to find all the handlers that way.

Is the lack of shutdown() a limitation or a bug?

pamelafox avatar Sep 25 '22 20:09 pamelafox