Coloredlogs

Latest version: v15.0.1

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

Scan your dependencies

Page 1 of 12

15.0.1

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

Bug fix: Restore :class:`.StandardErrorHandler` functionality

The :class:`.StandardErrorHandler` class is responsible for dynamically
resolving (looking up the value of) sys.stderr for each logged message instead
of once when :func:`coloredlogs.install()` is called.

This was unintentionally broken by changes in `release 14.1`_.

.. _Release 15.0.1: https://github.com/xolox/python-coloredlogs/compare/15.0...15.0.1

15.0

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

Don't enable system logging on MacOS and Windows anymore.

This is backwards incompatible (which is why I'm bumping the major version
number) however the old behavior has been reported to be rather problematic
(see :func:`~coloredlogs.syslog.is_syslog_supported()` for details) so this
seems like the best choice.

.. _Release 15.0: https://github.com/xolox/python-coloredlogs/compare/14.2...15.0

14.3

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

Merged pull request `89`_ which enhances :func:`coloredlogs.install()` to
preserve the filters on handlers that are replaced by :pypi:`coloredlogs`.

.. _Release 14.3: https://github.com/xolox/python-coloredlogs/compare/14.2...14.3
.. _89: https://github.com/xolox/python-coloredlogs/pull/89

14.2

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

Honor the ``$NO_COLOR`` environment variable as suggested in issue `88`_.

.. _Release 14.2: https://github.com/xolox/python-coloredlogs/compare/14.1...14.2
.. _88: https://github.com/xolox/python-coloredlogs/issues/88

14.1

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

**Bug fixes:**

- Don't allow interactive terminal detection to disable colored text when
colored text is being forced by the caller (reported in issue `84`_).

- Automatically disable colored text when logging output is being redirected to
a file in such a way that it actually works 😬 (reported in issue `100`_).

**Other changes:**

- Start testing on PyPy 3 (because why not?)

.. _Release 14.1: https://github.com/xolox/python-coloredlogs/compare/14.0...14.1
.. _84: https://github.com/xolox/python-coloredlogs/issues/84
.. _100: https://github.com/xolox/python-coloredlogs/issues/100

14.0

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

Integrate native Windows 10 support for ANSI escape sequences (`71`_, `72`_).

Native support for ANSI escape sequences was added to Windows 10 after its
initial release, specifically in release 10.0.14393. I've now updated
:pypi:`coloredlogs` and :pypi:`humanfriendly` to detect and enable this "new"
native support.

Windows 10 seems to comprise the majority of Windows installations worldwide so
in the interest of "looking forward" I've decided to drop the :pypi:`colorama`
requirement, given that it has now become a minority use case.

Hopefully most existing users will not experience any regression because they
previously installed :pypi:`colorama` already, and when available it will still
be used. However new installations on older Windows systems now require users
to install :pypi:`colorama` separately. This has been documented in the readme
in an attempt to minimize resulting confusion.

PS. In case anyone is wondering: I decided that giving a major Windows support
update in :pypi:`coloredlogs` the version 13.0 was asking for trouble, so I
decided not to do that 😇.

.. _Release 14.0: https://github.com/xolox/python-coloredlogs/compare/12.0...14.0
.. _71: https://github.com/xolox/python-coloredlogs/issues/71
.. _72: https://github.com/xolox/python-coloredlogs/pull/72

Page 1 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.