https://github.com/dohlee/python-cleanlog
:package: Python package for nice colored logs.
https://github.com/dohlee/python-cleanlog
logging logging-library python python-library utility
Last synced: over 1 year ago
JSON representation
:package: Python package for nice colored logs.
- Host: GitHub
- URL: https://github.com/dohlee/python-cleanlog
- Owner: dohlee
- License: mit
- Created: 2018-07-25T03:06:06.000Z (almost 8 years ago)
- Default Branch: develop
- Last Pushed: 2021-06-17T05:34:14.000Z (almost 5 years ago)
- Last Synced: 2025-02-11T23:43:11.219Z (over 1 year ago)
- Topics: logging, logging-library, python, python-library, utility
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
# cleanlog
Python package for nice colored logs.
## Installation
```shell
pip install cleanlog
```
## At a glance
```python
# log.py
import cleanlog
logger = cleanlog.ColoredLogger('mylogger')
# Note that since cleanlog just wraps built-in logging module,
# this is equivalent to logger.setLevel(logging.DEBUG).
logger.setLevel(cleanlog.DEBUG)
logger.critical('A critical message.')
logger.error('An error message.')
logger.warning('A warning message.')
logger.info('An info message.')
logger.debug('A debug message.')
```

### TODO
- [x] Implement cleanlog.BasicLogger.