Skip to main content

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

Dataxet 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.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loggermodule_X-2.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file loggermodule_X-2.1.tar.gz.

File metadata

  • Download URL: loggermodule_X-2.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for loggermodule_X-2.1.tar.gz
Algorithm Hash digest
SHA256 e31ca78cd1db7ceea7bf38d9adc1e2f3e760cdaf407d7d290d5080fc8052c042
MD5 3b1f76bcdd417ee650f3430c09bfdd26
BLAKE2b-256 c8a6bda3515df8390ad06bafb97dfa1f5071b623c5a77c3a3bc1b7cc7e289357

See more details on using hashes here.

File details

Details for the file loggermodule_X-2.1-py3-none-any.whl.

File metadata

  • Download URL: loggermodule_X-2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for loggermodule_X-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e464292130020735ef65a9f9f0a0d35bc3f1dcce722001f55eea105532076b10
MD5 2fb261f3e21d8ad058e0466d16e38f3c
BLAKE2b-256 86e45bc4330d0c24ae369539a807aa4cfb689f1e6f66d6949352e30cb33a2d48

See more details on using hashes here.

Supported by

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