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)
| 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
|