A better, simple logger for python
Project description
BetterPythonLogger
A better python logger for better logging.
Usage
from BetterPythonLogger import Logger
logger = Logger.Logger("test")
logger.debug("This is a debug message")
By default this while create a new log file in the log directory
you can add a file handler to the logger
from BetterPythonLogger import Logger
logger = Logger.Logger("test")
logger.addFileHandler("<filename>", "<logger_name> here will be test")
You can add a stream handler to the logger
from BetterPythonLogger import Logger
logger = Logger.Logger("test")
logger.addStreamHandler("<logger_name> here will be test")
You can add a logger to the logger
from BetterPythonLogger import Logger
logger = Logger.Logger("test")
logger.addLogger("<logger_name>")
This will add a stream handler and a file handler to the newly created logger
If you don't want a file handler you can say noFile=True in the constructor or in the addLogger method
If you don't use any name we will use the name used to create the class.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file BetterPythonLogger-1.1.3.tar.gz
.
File metadata
- Download URL: BetterPythonLogger-1.1.3.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f4aa860eda003964d6313a2e67530526ccb62b96613f1e9401e87cf3c41913c |
|
MD5 | 999c7ee356c4046ea09fe205120c8aec |
|
BLAKE2b-256 | 20d2d9377c7de177aa34e3edfc283b01615accbe0271833632e92fe1351afd2e |
File details
Details for the file BetterPythonLogger-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: BetterPythonLogger-1.1.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 285e8b8724a0c8ad58dcb4e2c642413f64ec973a70b5a0b58da2cb9d6eeb1111 |
|
MD5 | 80566ae01e984ca9c0f95df56a130a40 |
|
BLAKE2b-256 | 8b81f93b12d9b5025b458c322562353b7f3be52b4fab3902adbf9e6da46640f9 |