Log21

Latest version: v2.10.0

Safety actively analyzes 639160 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 12

2.5.3

Moved some dictionaries to `__init__` methods.
`colors` in `Argparse.ColorizingHelpFormatter` class.
`_level_name` in `Formatters._Formatter` class and `level_colors` in `Formatters.ColorizingFormatter` class.
`sign_colors` in `PPrint.PrettyPrinter` class.
`colors` in `TreePrint.TreePrint.Node` class.

2.5.2

Improved type-hintings.

2.5.1

Switched from `setup.py` build system to `pyproject.toml`

2.5.0

Added `level_colors` argument to `log21.get_logger` function with will be passed to the formatter and allows
user to set custom level colors while making a new logger.
Also changed most `Dict` type hints to be `Mapping` and `list` to `Sequence` to make the functions more general
and less strict.

2.4.7

Added `extra_values` argument to `CrashReporter.Formatter` which will let you pass extra static or dynamic values to the
report formatter.
They can be used in the format string. For dynamic values you can pass a function that takes no
arguments as the value.

2.4.6

Shortened the usage syntax for the CrashReporters:

python
import log21

Define a ConsoleReporter object
console_reporter = log21.CrashReporter.ConsoleReporter()


This works with other `log21.CrashReporter.Reporter` subclasses as well.

Old syntax (still supported)
console_reporter.reporter
def divide_old(a, b):
return a / b


New Syntax
console_reporter.reporter
def divide_new(a, b):
return a / b



`console_crash_reporter` and `file_crash_reporter` are removed!

Page 4 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.