Colouredlogs

Latest version: v10.0.1

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

Scan your dependencies

Page 2 of 10

9.0

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

Added support for background colours and 256 colour mode (`35`_).

Most of the changes required for this were actually implemented in the
humanfriendly_ package (see issue `35`_). The changes in colouredlogs
are mostly related to the ANSI to HTML conversion.

One unrelated change was made, that was to use faint green for the ``SPAM`` log
level (to distinguish it from ``DEBUG``).

New features in ANSI to HTML conversion:

- Support for bright and faint colours.
- Support for underlined, strike-through and inverse text styles.

Bug fixes in ANSI to HTML conversion:

- The scheme of URLs is no longer stripped from visible output.
- Support for ``\x1b[m`` as a short hand for ``\x1b[0m`` (I only learned about
this today when I didn't understand the empty ANSI escape sequence at the end
of each line emitted by ``hg log``).
- Ensure that the pattern for URLs doesn't capture ANSI sequences.

- Documenting how it all works. This will follow in the next commit
which is going to be a rather big one (hence why I see some value
in keeping it separate from the implementation changes).

Miscellaneous changes:

- Add installation instructions to readme.
- Improve screenshots in documentation.
- Automate taking of screen shots :-).

.. _Release 9.0: https://github.com/xolox/python-coloredlogs/compare/8.0...9.0
.. _35: https://github.com/xolox/python-coloredlogs/issues/35
.. _humanfriendly: https://humanfriendly.readthedocs.io/

8.0

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

Set the default date format in a new ``formatTime()`` method (`42`_).

I decided to bump the major version number because this change is technically
backwards incompatible, even though it concerns a minor detail (``datefmt``
being set to its default value in the initializer). Then again, this change
does improve compatibility with the behavior of the ``logging.Formatter`` class
in Python's standard library, so there's that :-).

.. _Release 8.0: https://github.com/xolox/python-coloredlogs/compare/7.3.3...8.0
.. _42: https://github.com/xolox/python-coloredlogs/pull/42

7.3.3

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

Bug fix for ``colouredlogs --demo`` so that it always displays the ``DEBUG`` message (`41`_).

.. _Release 7.3.3: https://github.com/xolox/python-coloredlogs/compare/7.3.2...7.3.3
.. _41: https://github.com/xolox/python-coloredlogs/pull/41

7.3.2

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

Bug fixes and improvements to ANSI to HTML conversion:

- Make sure that conversion of empty input produces no output.
- Strip bogus ``^D`` from output captured on MacOS.
- Increase test coverage on MacOS via Travis CI.

.. _Release 7.3.2: https://github.com/xolox/python-coloredlogs/compare/7.3.1...7.3.2

7.3.1

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

Bug fix for ``get_install_requires()`` in ``setup.py`` script (fixes `43`_).

.. _Release 7.3.1: https://github.com/xolox/python-coloredlogs/compare/7.3...7.3.1
.. _43: https://github.com/xolox/python-coloredlogs/issues/43

7.3

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

Added support for the ``SUCCESS`` log level (related to `27`_ and `verboselogs
issue 4 <https://github.com/xolox/python-verboselogs/issues/4>`_).

.. _Release 7.3: https://github.com/xolox/python-coloredlogs/compare/7.2...7.3
.. _27: https://github.com/xolox/python-coloredlogs/issues/27

Page 2 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.