Skip to main content

Just logging :)

Project description

Logger Module X

Just logging python file !

Change log !!!

Version 2.0 - 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 !!')

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Infoquest Limited

Project details


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.0.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

loggermodule_X-2.0-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page