Just another logger
Project description
pylogz
Super basic logger used in personal projects.
Why should you use this? You probably shouldn't.
Quickstart
pip install --upgrade pylogz
Usage
from logz import get_logger
logger = get_logger(name='libname', log_level='info', *args, **kwargs)
logger.info('...')
### Multi lib usage, threadsafe-ish
from logz import get_cls_logger
get_logger = get_cls_logger(name='libname_1', log_level='info', *args, **kwargs)
get_logger2 = get_cls_logger(name='libname_2', log_level='info', *args, **kwargs)
# Now you can call the get_logger function from any submodule.
logger = get_logger()
logger.info('hi')
"""
2021-12-03 03:36:26Z [libname_1] <stdin>.<module> hi
"""
logger2 = get_logger2()
logger2.info('hi')
"""
2021-12-03 03:36:26Z [libname_2] <stdin>.<module> hi
"""
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
pylogz-0.0.4.tar.gz
(4.6 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 pylogz-0.0.4.tar.gz.
File metadata
- Download URL: pylogz-0.0.4.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c99f84cf087b1617464c322396883f16c2d1347d7613fec089102097d4c389df
|
|
| MD5 |
5123368b32d7bb2e8454089918ec51e4
|
|
| BLAKE2b-256 |
b1707e2b66f5df69ddc1dffa6df3d190fc643d0f9457770e2e372626c1197824
|
File details
Details for the file pylogz-0.0.4-py3-none-any.whl.
File metadata
- Download URL: pylogz-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7795a47bd7e69a7b46985d66b8fdce18697302ee9db280c5821cfc10188f325
|
|
| MD5 |
893655ba08249862f78710a865ebd7b4
|
|
| BLAKE2b-256 |
1d5a3a7a6cac2217a592d16764024b1fc4c0bc424eab53baaeba944f26c28c25
|