Colouredlogs

Latest version: v10.0.1

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

Scan your dependencies

Page 6 of 10

3.1.4

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

Bug fix: Don't use bold font on Windows (follow up to previous change).

.. _Release 3.1.4: https://github.com/xolox/python-coloredlogs/compare/3.1.3...3.1.4

3.1.3

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

Bug fix: Don't use bold font on Windows (not supported). For future reference,
I found this issue here: https://ci.appveyor.com/project/xolox/pip-accel/build/1.0.15

.. _Release 3.1.3: https://github.com/xolox/python-coloredlogs/compare/3.1.2...3.1.3

3.1.2

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

Bug fix for log format colourization (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 Colourama 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 Colourama 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 ``ColouredFormatter``, deprecated ``ColouredStreamHandler``.

- Fixed `2`_ by switching from ``connected_to_terminal()`` to
``terminal_supports_colours()`` (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
``colouredlogs.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
``$COLOUREDLOGS_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

Page 6 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.