A convenience package to add a flexible logger easily.
Project description
README
This package shall make logging easier. These are the goals:
- Make setup of a logger with time-stamped log messages a no-brainer
- Make adding/removing additional log files a one-liner
Use it like this:
from flexlog import cleanlogger
log = cleanlogger.CleanLogger("My Cool Module Name, Version 42")
# Log to console
log.info("Hello World!")
# Add a file
log.add_filelogger("mylogging.log")
log.debug("Log level of files is debug by default, but you can give it as parameter, too.")
import logging
log.add_filelogger("problemsonly.log", loglevel = logging.WARNING)
# Remove a file
log.remove_filelogger("mylogging.log")
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
flexlog-1.5.0.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flexlog-1.5.0.tar.gz.
File metadata
- Download URL: flexlog-1.5.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e4c8e4c4be8e17ec2d42944c8ced7c97c9ad34abedb6d38dea7284cb477d9be
|
|
| MD5 |
725c4fe95283c0c5d07c8ab75a706abd
|
|
| BLAKE2b-256 |
7de46cd908eac8e439a1e1a0f5dd5b14efc1482dfbde470edbbe9daa29e2f808
|
File details
Details for the file flexlog-1.5.0-py3-none-any.whl.
File metadata
- Download URL: flexlog-1.5.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef8c10cbfd5deef174dc1a2ea197ea1640578fd74b95c17b4a91a836eacf2067
|
|
| MD5 |
b196a9ec897635dd3f5e90612748889b
|
|
| BLAKE2b-256 |
52922771ce357f60bcca4b133e5692a033e0297bac6c79711941b007f067a7ce
|