- Add a new
logger.patch()
method which can be used to modify the record dict on-the-fly before its being sent to the handlers - Change behavior of
rotation
option in file sinks: it is now based on the file creation time rather than the current time, note that propoer support may differ depending on your platform (#58) - Raise errors on unkowns color tags rather than silently ignoring them (#57)
- Add the possibility to auto-close color tags by using
</>
(eg.<yellow>message</>
) - Remove colors tags mixing directives (eg.
<red,blue>
) for simplification - Modify behavior of sink option
backtrace
so it only extends the stacktrace upward, the display of variables values is now controlled with the newdiagnose
argument (#49) - Add coloration of exception traceback even if
diagnose
andbacktrace
options areFalse
- Add a way to limit the depth of formatted exceptions traceback by setting the conventional
sys.tracebacklimit
variable (#77) - The
record["exception"]
attribute is now unpackable as a(type, value, traceback)
tuple - Fix exception stack trace not colorizing source code lines on Windows
- Fix possible
AttributeError
while formatting exceptions within acelery
task (#52) - Fix
logger.catch
decorator not working with generator and coroutine functions (#75) - Fix
record["path"]
case being normalized for no necessary reason (#85) - Fix handler addded with
enqueue=True
stopping working if exception was raised in sink althoughcatch=True
- Tox should now be used for tests (#41)
- Modify behavior of sink option
backtrace=False
so it doesn't extend traceback upward automatically (#30) - Fix import error on some platforms using Python 3.5 with limited
localtime()
support (#33) - Fix incorrect time formatting of locale month using
MMM
andMMMM
tokens (#34, thanks @nasyxx) - Fix race condition permitting to write on a stopped handler
- Fix adding handler while logging which was not thread-safe (#22)
- Add support for PyPy
- Add support for Python 3.5
- Fix incompatibility with
awscli
by downgrading requiredcolorama
dependency version (#12)
- Deprecate
logger.start()
andlogger.stop()
methods in favor oflogger.add()
andlogger.remove()
(#3) - Fix ignored formatting while using
logging.Handler
sinks (#4) - Fix impossibility to set empty environment variable color on Windows (#7)
- Fix typo preventing README to be correctly displayed on PyPI
- Remove the
parser
and refactor it into thelogger.parse()
method - Remove the
notifier
and its dependencies, justpip install notifiers
if user needs it
- Add logger
- Add notifier
- Add parser
Initial release