Loguru v0.3.0 Release Notes

Release Date: 2019-06-29 // over 4 years ago
    • โœ‚ Remove all dependencies previously needed by loguru (on Windows platform, it solely remains colorama and win32-setctime).
    • โž• Add a new logger.patch() method which can be used to modify the record dict on-the-fly before it's being sent to the handlers.
    • Modify behavior of sink option backtrace so it only extends the stacktrace upward, the display of variables values is now controlled with the new diagnose argument (#49 <https://github.com/Delgan/loguru/issues/49>_).
    • ๐Ÿ”„ Change behavior of rotation option in file sinks: it is now based on the file creation time rather than the current time, note that proper support may differ depending on your platform (#58 <https://github.com/Delgan/loguru/issues/58>_).
    • ๐Ÿšฉ Raise errors on unknowns color tags rather than silently ignoring them (#57 <https://github.com/Delgan/loguru/issues/57>_).
    • โž• Add the possibility to auto-close color tags by using </> (e.g. <yellow>message</>).
    • โž• Add coloration of exception traceback even if diagnose and backtrace options are False.
    • โž• Add a way to limit the depth of formatted exceptions traceback by setting the conventional sys.tracebacklimit variable (#77 <https://github.com/Delgan/loguru/issues/77>_).
    • Add __repr__ value to the logger for convenient debugging (#84 <https://github.com/Delgan/loguru/issues/84>_).
    • โœ‚ Remove colors tags mixing directives (e.g. <red,blue>) for simplification.
    • ๐Ÿ‘ป Make the record["exception"] attribute unpackable as a (type, value, traceback) tuple.
    • Fix error happening in some rare circumstances because frame.f_globals dict did not contain "__name__" key and hence prevented Loguru to retrieve the module's name. From now, record["name"] will be equal to None in such case (#62 <https://github.com/Delgan/loguru/issues/62>_).
    • ๐Ÿ›  Fix logging methods not being serializable with pickle and hence raising exception while being passed to some multiprocessing functions (#102 <https://github.com/Delgan/loguru/issues/102>_).
    • ๐Ÿ›  Fix exception stack trace not colorizing source code lines on Windows.
    • ๐Ÿ›  Fix possible AttributeError while formatting exceptions within a celery task (#52 <https://github.com/Delgan/loguru/issues/52>_).
    • ๐Ÿ›  Fix logger.catch decorator not working with generator and coroutine functions (#75 <https://github.com/Delgan/loguru/issues/75>_).
    • ๐Ÿ›  Fix record["path"] case being normalized for no necessary reason (#85 <https://github.com/Delgan/loguru/issues/85>_).
    • ๐Ÿ›  Fix some Windows terminal emulators (mintty) not correctly detected as supporting colors, causing ansi codes to be automatically stripped (#104 <https://github.com/Delgan/loguru/issues/104>_).
    • ๐Ÿ›  Fix handler added with enqueue=True stopping working if exception was raised in sink although catch=True.
    • ๐Ÿ›  Fix thread-safety of enable() and disable() being called during logging.
    • โœ… Use Tox to run tests (#41 <https://github.com/Delgan/loguru/issues/41>_).