Simple, Colored, File and Line number printable logger
Project description
devfacPyLog
Simple, Colored, File and Line number printable python logger
I wanted to log like this
- colored
- file name
- line number
- time
- print type of logs by different func name
[2021-11-09 22:53:41.227][INF][test_logger.py:39] info log
[2021-11-09 22:53:41.229][DBG][test_logger.py:40] debug log
[2021-11-09 22:53:41.230][ERR][test_logger.py:41] error log
[2021-11-09 22:53:41.231][WRN][test_logger.py:42] warning log
[2021-11-09 22:53:41.233][CRC][test_logger.py:43] critical log
How to use
from devfacPyLogger import log
log.info('info log')
log.debug('debug log')
log.error('error log')
log.warning('warning log')
log.critical('critical log')
features
- At jupyter notebook there will be NO filename and line number(0.1)
[2021-11-09 23:01:34.591][WRN] warning log
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
devfacPyLogger-0.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for devfacPyLogger-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af60b5747298dc034699c614093ef3986c5f2cd2dc9255c8fd5e74f5b480e6d2 |
|
MD5 | 699abb86a8225876cff3eb63bb9f3796 |
|
BLAKE2b-256 | b204824d2f49bd01f05603add51773e53e5b4bab3608f527e99c33d8628c9e3d |