Release Notes
2.3 (2023-12-09)
- Added automatic formatting for dataclasses.
2.2 (2023-06-29)
- Dropped support for Python 3.7.
- Added
py.typed
for better mypy
support.
2.1 (2022-03-06)
- Dropped support for Python 3.6.
- Added automatic formatting of non-string messages.
2.0.1 (2021-06-03)
- Fixed logging within interactive sessions.
2.0 (2020-09-10)
- Removed automatic call to
init()
when creating the first logging record.
- Removed
reset=True
option for log.init()
. Use log.reset()
instead.
1.6 (2020-05-24)
- Updated logging to use the source filename when the module is
'__main__'
.
1.5 (2020-03-28)
- Fixed
init()
to handle invalid verbosity
levels and default to DEBUG.
1.4.1 (2020-03-22)
- Fixed new loggers to inherit the root logging level when their parent has none set.
1.4 (2020-02-15)
- Deprecated
reset=True
option for log.init()
in favor of a separate log.reset()
function.
1.3 (2019-11-27)
- Added support for Python 3.8.
1.2.6 (2019-11-14)
- Fixed new loggers to inherit logging level from their parent.
1.2.5 (2019-10-19)
- Fixed logging levels to use the default level for new loggers.
1.2.4 (2019-09-04)
- Fixed
init()
to pass all arguments to logging.Formatter
.
1.2.3 (2019-01-08)
- Sped up logging by eliminating module lookup.
1.2.2 (2019-01-08)
- Sped up logging by eliminating source file loading.
1.2.1 (2018-12-10)
- Fixed missing
%(relpath)s
format for pytest
.
1.2 (2018-12-09)
- Fixed bug where logger name is unset when logging during imports.
1.1 (2018-10-26)
- Added
%(relpath)s
logging format.
- Added
verbosity
as init()
option to work with Django admin commands.
1.0 (2018-09-27)
0.5 (2018-09-07)
- Disabled automatic logging configuration when invoked by
pytest
.
0.4 (2018-4-28)
- Added
reset=True
as init()
option to replace all existing logging handlers.
- Added
exception
logging API.
- Added convenience alias:
log.c
, log.exc
.
0.3.1 (2018-03-30)
- Fixed bug where records were written for disabled levels.
0.3 (2018-03-15)
- Exposed
logging
level constants on the log
package.
- Added
log.WARN
as an alias of log.WARNING
.
0.2.1 (2018-03-04)
- Removed the Python version check on installation.
0.2 (2018-03-03)
- 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
0.1 (2018-03-03)