- Added
CRITICAL
log level to the package namespace.
- Added automatic formatting for dataclasses.
- Dropped support for Python 3.7.
- Added
py.typed
for bettermypy
support.
- Dropped support for Python 3.6.
- Added automatic formatting of non-string messages.
- Fixed logging within interactive sessions.
- Removed automatic call to
init()
when creating the first logging record. - Removed
reset=True
option forlog.init()
. Uselog.reset()
instead.
- Updated logging to use the source filename when the module is
'__main__'
.
- Fixed
init()
to handle invalidverbosity
levels and default to DEBUG.
- Fixed new loggers to inherit the root logging level when their parent has none set.
- Deprecated
reset=True
option forlog.init()
in favor of a separatelog.reset()
function.
- Added support for Python 3.8.
- Fixed new loggers to inherit logging level from their parent.
- Fixed logging levels to use the default level for new loggers.
- Fixed
init()
to pass all arguments tologging.Formatter
.
- Sped up logging by eliminating module lookup.
- Sped up logging by eliminating source file loading.
- Fixed missing
%(relpath)s
format forpytest
.
- Fixed bug where logger name is unset when logging during imports.
- Added
%(relpath)s
logging format. - Added
verbosity
asinit()
option to work with Django admin commands.
- Initial stable release.
- Disabled automatic logging configuration when invoked by
pytest
.
- Added
reset=True
asinit()
option to replace all existing logging handlers. - Added
exception
logging API. - Added convenience alias:
log.c
,log.exc
.
- Fixed bug where records were written for disabled levels.
- Exposed
logging
level constants on thelog
package. - Added
log.WARN
as an alias oflog.WARNING
.
- Removed the Python version check on installation.
- Added method to force logging format:
log.init(format="...")
- Added method to silenced named loggers:
log.silence('requests', allow_error=True)
- Added convenience aliases:
log.d
,log.i
,log.w
,log.e
- Initial release.