Just logging :)
Project description
Logger Module X
Just logging python file !
Change log !!!
Version 2.1
- Build project as wheel !
- Rotate log by folder name as default (Rotated by date)
- Now you can manual config log split by send parameter 'maxBytes' and 'backupCount' !
- Remove unused parameters.
Installation
Use the package manager pip to install loggermodule-X.
pip install loggermodule-X
or
pip install loggermodule-X -U
Usage
- file = required
- hstdout = [optional] logging to STDOUT console (Default is 'DEBUG') make sure option is in this list = ['NOTSET', 'INFO', 'DEBUG', 'ERROR', 'WARNING', 'CRITICAL']
- hfile = [optional] logging to File (Default is 'DEBUG') make sure option is in this list = ['NOTSET', 'INFO', 'DEBUG', 'ERROR', 'WARNING', 'CRITICAL']
- maxBytes = [optional] int (Default is 0)
- backupCount= [optional] int (Default is 0) if maxBytes > 0 this param should not be 0 !!!!!!!!
from loggermodule_X import logger_x
if __name__ == '__main__':
log = logger_x(__file__).configLogger()
log.info('THIS is info msg !!')
log.debug('THIS is debug msg !!')
log.error('THIS is error msg !!')
log.warning('THIS is warning msg !!')
log.critical('THIS is critical msg !!')
License
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
loggermodule_X-2.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for loggermodule_X-2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e464292130020735ef65a9f9f0a0d35bc3f1dcce722001f55eea105532076b10 |
|
MD5 | 2fb261f3e21d8ad058e0466d16e38f3c |
|
BLAKE2b-256 | 86e45bc4330d0c24ae369539a807aa4cfb689f1e6f66d6949352e30cb33a2d48 |