A hierarchical and colourful logging module
Project description
Hierarchical Colored Logger Module for Python
HCLogger is a logging module using Termcolor and a hierarchical format to improve readability.
Note: this module was designed to deal with concurrency. However, it is encouraged to store thread logs into different log files.
Installation
pip install hclogger
Usage
As simple as it could be:
from HCLogger import Logger
logger = Logger(filename='fname.log', verbose=False)
logger.debug('This is a debug message.')
Output:
The hierarchy is added to functions. In order to add hierarchy on of the following alternatives must be used:
# The manual call
logger.manual_log_func(func, args*)
# The decorated call
@logger.log_func
def func(args):
...
func()
Output:
Putting it all together:
Future work
- Add to PyPi
- Create web view
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 hclogger-1.0.4.tar.gz.
File metadata
- Download URL: hclogger-1.0.4.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bd654f89759535252feff3b1259e4dcfbe9bb02743abb946e780ee8bdfd80aa
|
|
| MD5 |
71120c6eba0b2fe1a6cc10e6a4754983
|
|
| BLAKE2b-256 |
065b0f055f226aceed85a15306fb90dc8224c7d8d861ab3ca135dacbf9251cf1
|
File details
Details for the file hclogger-1.0.4-py3-none-any.whl.
File metadata
- Download URL: hclogger-1.0.4-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2f8bfe239202ea5ad00d1b6f2a4c516f12eeab57b1e882604c822be9378f5db
|
|
| MD5 |
7993ef1f6547e41111340c7da384ec89
|
|
| BLAKE2b-256 |
4a367fb80ee6a50ad83e4163306f328ab624aafa80cbbb94f804469240093823
|