Skip to main content

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

Release files for carson-logging 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for carson-logging 0.1.0
File Size Uploaded
carson-logging-0.1.0.tar.gz 6.9 kB Details

Release files / carson-logging-0.1.0.tar.gz

Download URL carson-logging-0.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ca5423b463deac0a7b52910fd55f68296495f5fcb328bfc714b862ce0bd8bda2
BLAKE2b-256 checksum
How to use checksums
6bbefb2bc5dc0c9d8de1572892cf1d6cad59540e6283e14fc229928cf13111eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.1

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page