Coloredlogs

Latest version: v15.0.1

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

Scan your dependencies

Page 8 of 12

3.1.2

-----------------------------

Bug fix for log format colorization (fixes `9`_).

Rationale: I'm not validating the format, I just want to extract the referenced
field names, so looking for ``%(..)`` without a trailing type specifier (and
optional modifiers) is fine here.

.. _Release 3.1.2: https://github.com/xolox/python-coloredlogs/compare/3.1.1...3.1.2
.. _9: https://github.com/xolox/python-coloredlogs/issues/9

3.1.1

-----------------------------

Fixed broken Colorama reference in ``README.rst`` because it breaks the reStructuredText rendering on PyPI.

.. _Release 3.1.1: https://github.com/xolox/python-coloredlogs/compare/3.1...3.1.1

3.1

---------------------------

Depend on and use Colorama on Windows (as suggested in `2`_). I can't actually
test this because I don't have access to a Windows system, but I guess some day
someone will complain if this doesn't work as intended ;-).

.. _Release 3.1: https://github.com/xolox/python-coloredlogs/compare/3.0...3.1
.. _2: https://github.com/xolox/python-coloredlogs/issues/2

3.0

---------------------------

Major rewrite: Added ``ColoredFormatter``, deprecated ``ColoredStreamHandler``.

- Fixed `2`_ by switching from ``connected_to_terminal()`` to
``terminal_supports_colors()`` (the latter understands enough about Windows
to know it doesn't support ANSI escape sequences).

- Fixed `6`_ by adding support for user defined formats (even using a custom
filter to enable the use of ``%(hostname)s`` :-).

- Fixed `7`_ by adding support for user defined formats and making
``coloredlogs.install()`` an almost equivalent of ``logging.basicConfig()``.

This rewrite mostly resolves `pip-accel issue 59
<https://github.com/paylogic/pip-accel/issues/59>`_. Basically all that's
missing is a configuration option in pip-accel to make it easier to customize
the log format, although that can now be done by setting
``$COLOREDLOGS_LOG_FORMAT``.

.. _Release 3.0: https://github.com/xolox/python-coloredlogs/compare/2.0...3.0
.. _2: https://github.com/xolox/python-coloredlogs/issues/2
.. _6: https://github.com/xolox/python-coloredlogs/issues/6
.. _7: https://github.com/xolox/python-coloredlogs/issues/7

2.0

---------------------------

- Backwards incompatible: Change ``ansi2html`` to ``coloredlogs --convert`` (see `8`_).
- Implement and enforce PEP-8 and PEP-257 compliance.
- Change Read the Docs links to use HTTPS.
- Move ad-hoc coverage configuration from ``Makefile`` to ``.coveragerc``.

.. _Release 2.0: https://github.com/xolox/python-coloredlogs/compare/1.0.1...2.0
.. _8: https://github.com/xolox/python-coloredlogs/issues/8

1.0.1

-----------------------------

- Bug fix for obscure ``UnicodeDecodeError`` in ``setup.py`` (only on Python 3).
- Document PyPy as a supported (tested) Python implementation.

.. _Release 1.0.1: https://github.com/xolox/python-coloredlogs/compare/1.0...1.0.1

Page 8 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.