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

Metadata

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 Provenance
carson-logging-0.1.0.tar.gz 6.9 kB Without provenance 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

Security for carson-logging 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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