Loguru v0.5.0 Release Notes

Release Date: 2020-05-17 // about 2 years ago
    • โœ‚ Remove the possibility to modify the severity no of levels once they have been added in order to prevent surprising behavior (#209 <https://github.com/Delgan/loguru/issues/209>_).
    • Add better support for "structured logging" by automatically adding **kwargs to the extra dict besides using these arguments to format the message. This behavior can be disabled by setting the new .opt(capture=False) parameter (#2 <https://github.com/Delgan/loguru/issues/2>_).
    • โž• Add a new onerror optional argument to logger.catch(), it should be a function which will be called when an exception occurs in order to customize error handling (#224 <https://github.com/Delgan/loguru/issues/224>_).
    • โž• Add a new exclude optional argument to logger.catch(), is should be a type of exception to be purposefully ignored and propagated to the caller without being logged (#248 <https://github.com/Delgan/loguru/issues/248>_).
    • Modify complete() to make it callable from non-asynchronous functions, it can thus be used if enqueue=True to make sure all messages have been processed (#231 <https://github.com/Delgan/loguru/issues/231>_).
    • ๐Ÿ›  Fix possible deadlocks on Linux when multiprocessing.Process() collides with enqueue=True or threading (#231 <https://github.com/Delgan/loguru/issues/231>_).
    • ๐Ÿ›  Fix compression function not executable concurrently due to file renaming (to resolve conflicts) being performed after and not before it (#243 <https://github.com/Delgan/loguru/issues/243>_).
    • Fix the filter function listing files for retention being too restrictive, it now matches files based on the pattern "basename(.*).ext(.*)" (#229 <https://github.com/Delgan/loguru/issues/229>_).
    • ๐Ÿ›  Fix the impossibility to remove() a handler if an exception is raised while the sink' stop() function is called (#237 <https://github.com/Delgan/loguru/issues/237>_).
    • ๐Ÿ›  Fix file sink left in an unstable state if an exception occurred during retention or compression process (#238 <https://github.com/Delgan/loguru/issues/238>_).
    • ๐Ÿ›  Fix situation where changes made to record["message"] were unexpectedly ignored when opt(colors=True), causing "out-of-date" message to be logged due to implementation details (#221 <https://github.com/Delgan/loguru/issues/221>_).
    • ๐Ÿ›  Fix possible exception if a stream having an isatty() method returning True but not being compatible with colorama is used on Windows (#249 <https://github.com/Delgan/loguru/issues/249>_).
    • ๐Ÿ›  Fix exceptions occurring in coroutine sinks never retrieved and hence causing warnings (#227 <https://github.com/Delgan/loguru/issues/227>_).