A Simple Logger Package
Project description
A Simple Logger Package
Installation
pip install simple-loggers
Usage
from simple_loggers import SimpleLogger
logger = SimpleLogger(colored=True)
logger.debug('debug message')
logger.info('info message')
logger.warning('warn message')
logger.error('error message')
logger2 = SimpleLogger(name='TEST2', colored=False, logfile='out.log')
logger2.debug('debug message')
logger2.info('info message')
logger2.warning('warn message')
logger2.error('error message')
logger3 = SimpleLogger(name='TEST3', level='info', fmt='%(asctime)s %(levelname)s: %(message)s')
logger3.debug('debug message')
logger3.info('info message')
logger3.warning('warn message')
logger3.error('error message')
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
simple-loggers-1.0.5.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file simple-loggers-1.0.5.tar.gz
.
File metadata
- Download URL: simple-loggers-1.0.5.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 354ad8b6e21200ce58b644941e3e53722b91dec486b852936a9c393053a973ad |
|
MD5 | e96b6ca7359bb5cb054b50ca5cb00b88 |
|
BLAKE2b-256 | fcd223c744365b74d644f98e65f6aa9d8611067c3810f6fd738586b4773d84e4 |
File details
Details for the file simple_loggers-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: simple_loggers-1.0.5-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a1a07a692f04c3e4b5a79261498ca8143bbf0dbfd1cbdeb5cc4cad96c4ebb40 |
|
MD5 | 17117fcc6419c9a99606c8dc5f36c97f |
|
BLAKE2b-256 | 1525e6d75a5f1056a89e55892ab9c6944feb0e75c41bcab0b46b5199d84fe19f |