New
0.7.0
- Update
InterceptHandlerrecipe to make it compatible with Python 3.11 (#654). - Add a new
watchoptional argument to file sinks in order to automatically re-create possibly deleted or changed file (#471). - Make
patch()calls cumulative instead of overriding the possibly existing patching function (#462). - Make sinks added with
enqueue=Trueandcatch=Falsestill process logged messages in case of internal exception (#833). - Avoid possible deadlocks caused by re-using the logger inside a sink, a signal handler or a
__del__method. Since the logger is not re-entrant, such misuse will be detected and will now generate aRuntimeError(#712, thanks @jacksmith15). - Fix file sink rotation using an aware
datetime.timefor which the timezone was ignored (#697). - Fix logs colorization not automatically enabled for Jupyter Notebook and Google Colab (#494).
- Fix logs colorization not automatically enabled for Github Actions and others CI platforms (#604).
- Fix
logger.complete()possibly hanging forever whenenqueue=Trueandcatch=Falseif internal thread killed due toExceptionraised by sink (#647). - Fix incompatibility with
freezegunlibrary used to simulate time (#600). - Raise exception if
logger.catch()is used to wrap a class instead of a function to avoid unexpected behavior (#623).