https://github.com/markjay4k/clogger
Simple python logger with colors
https://github.com/markjay4k/clogger
Last synced: 4 months ago
JSON representation
Simple python logger with colors
- Host: GitHub
- URL: https://github.com/markjay4k/clogger
- Owner: markjay4k
- License: unlicense
- Created: 2023-12-14T02:53:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-18T19:13:06.000Z (over 2 years ago)
- Last Synced: 2024-12-30T23:33:54.248Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CLOGGER
A simple python logger with a funny name
## FEATURES
- Rotating logfiles
- Loglevel colors
- Aligned module names
- Additional `mods` dataclass for adding colors to text
## USAGE
```python
import clogger
log = clogger.log('DEBUG', logger_name='test')
log.debug('debug message')
log.info('info message')
log.warning('warning message')
log.error('error message')
log.critical('critical message')
```
And the output
```bash
2024-02-18 19:03:25| test DEBUG| debug message
2024-02-18 19:03:25| test INFO| info message
2024-02-18 19:03:25| test WARNING| warning message
2024-02-18 19:03:25| test ERROR| error message
2024-02-18 19:03:25| test CRITICAL| critical message
```