Just a very simple wrapper to configure a thread safe logger.
Project description
custom-logger-xzf8971
Just a very simple wrapper to configure a thread safe logger.
Usage
The logger_name must be exclusive!
from custom_logger import CustomLoggerWrapper
loggerWrapper = CustomLoggerWrapper(logger_name="example_logger" logger_level=logging.INFO, logger_propagate=False, logger_fmt="%(asctime)s - %(levelname)s - %(message)s", log_filename="mylog.log")
loggerWrapper.InitLogger()
logger = loggerWrapper.GetInitedLogger()
logger.info("example")
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
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 custom-logger-xzf8971-1.1.0.tar.gz.
File metadata
- Download URL: custom-logger-xzf8971-1.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94566e99072836d33005a13a8dbfcf2d8df56ac05f43a070d3be53452a35eed4
|
|
| MD5 |
4be18228884feeb6a6d30763c760c8a8
|
|
| BLAKE2b-256 |
7cbd39699e906d3c074daf1475187a7844c442e12c347524263c6fea6766064e
|
File details
Details for the file custom_logger_xzf8971-1.1.0-py3-none-any.whl.
File metadata
- Download URL: custom_logger_xzf8971-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55dd7d31cf36de169a9b0e24d45fb7d399ccff6bbd388adf9f4ff18aae4b82f9
|
|
| MD5 |
6eb0c25fc21670f43ca787686948550d
|
|
| BLAKE2b-256 |
55c74e612afcb794acfe6b8cd64691cbfc5a8bd06ac7876ebd3bf9518081cea2
|