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 USAGE

3.1 Basic

log = CLogging("log_name", "temp_dir/xxx.log")
log.info('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.0.6.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file carson-logging-0.0.6.tar.gz.

File metadata

  • Download URL: carson-logging-0.0.6.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for carson-logging-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ec8d9894184fd180b2f95fc84bf78cdc8d68ca37fbef3dd2d4072e8052eb2d74
MD5 1e1cd4594723e7a46f664f307f47d8e5
BLAKE2b-256 1a46a73afe58f6201448e24ca89d6f2cf87b904403b2801180cf37be4b23873d

See more details on using hashes here.

Supported by

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