Skip to main content

easier to use original python provides a module of logging

Project description

1 Install

  • pip install carson-logging

2 import packages

from Carson.Class.Logging import CLogging


3.1 Basic

log = CLogging("log_name", "temp_dir/xxx.log")'info msg')
log.debug('info msg')
log.warning('info msg')
log.error('info msg')
log.critical('info msg')

3.2 Advanced

my_define_format = logging.Formatter(u'%(asctime)s|%(levelname)s|%(name)s|%(message)s')
log = CLogging("log_name", "C:dir/xxx.log", logging.INFO, 'w', my_define_format, stream_handler_on=True, stream_level=logging.ERROR)

4 Issues

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

carson-logging-0.1.0.tar.gz (6.9 kB view hashes)

Uploaded Source

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