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.1.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file simple-loggers-1.0.1.tar.gz
.
File metadata
- Download URL: simple-loggers-1.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac09f53eef7b74eb8bd9391e0263ea11ce4875f522957834b2eb323c767869a9 |
|
MD5 | a843e2cb0b58eb64d535ac436fa35fb5 |
|
BLAKE2b-256 | 3c24c1fa74c7859d3f49c3edb282caeef0ff42bc890bfabd266b89bf8ba2a044 |
File details
Details for the file simple_loggers-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: simple_loggers-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b89213ba452ca7516a99e14e25a02cdfb83f24b8ff5b63ac26454ddbff4b537 |
|
MD5 | ba67fe9de060ac85aa3f14b66bfb9f2c |
|
BLAKE2b-256 | 437e8e02fce248c7b8ef85b45be85ef06ca543041cc5ebee02633b7702aab520 |