Metadata-Version: 2.1
Name: log-color
Version: 1.1.0
Summary: Simple log formatters for colored output
Author-email: Brant Watson <oldspiceap@gmail.com>
License:         DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                            Version 2, December 2004
        Copyright © 2016 Brant Watson <oldspiceap@gmail.com>
        This work is free. You can redistribute it and/or modify it under the
        terms of the Do What The Fuck You Want To Public License, Version 2,
        as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
        
                    DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
           TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
          0. You just DO WHAT THE FUCK YOU WANT TO.
        
Project-URL: homepage, https://github.com/induane/logcolor
Project-URL: documentation, http://log-color.readthedocs.io/en/latest/
Project-URL: repository, https://github.com/induane/logcolor
Project-URL: changelog, https://github.com/induane/logcolor/blob/master/docs/source/changelog.rst
Keywords: logging,color,formatter
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.6.*
Description-Content-Type: text/markdown
Provides-Extra: dev
Provides-Extra: docs
License-File: LICENSE

# LogColor
<a href="http://log-color.readthedocs.io/en/latest/"><img src="https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat"></a>
<a href="https://pypi.python.org/pypi/log-color"><img src="https://img.shields.io/pypi/v/log_color.svg"></a>

When making command line interfaces, it's often useful to colorize the output
to emphasize salient pieces of information or otherwise enhance the user
experience. Unfortunately it's quite cumbersome to add colorized outputs to
Python log messages.

## ColorFormatter

The ColorFormatter is a logging formatter that parses your log messages and
adds color codes to the log messages.

![example](https://raw.githubusercontent.com/induane/logcolor/master/docs/source/images/example_logs.png)

## ColorStripper

The ColorStripper formatter is the inverse of the ColorFormatter. It strips the
color information from your messages so that you can safely log to a file.

## Installation
I'm on pypi!

```
$ pip install log_color
```

## Features

- Simple to use
- No external dependencies
- Compatibility with Python 3.6+, PyPy

## http://no-color.org/
LogColor honors the ``NO_COLOR`` environment variable.
