a fast, no dependencies log colorizer. with style formatter.
Project description
Something about xlogger
I'm a python starter, when I learn the logging section, I thought that writing the logging format is so 'non-python', and I have to write the same 'anti-human' codes every where. Logs are important and should be used more. And in more simple way.
So I checked StackOverflow for some inspiration, and I actually learned some.
Here is the module I made, in fact, it's the first one I wrote that should be shared at pypi I thought.
Hope you guys enjoy it:)
Usage
just copy the code, it have no dependencies. this is the way recommended, because you can make your own logger customized easily by setting some variables.
or if you want to install
pip3 install xlogger
then add lines to your code:
from xlogger import xlogger
logger = xlogger.get_my_logger(__name__)
and then just use logger as usual.
Main references
'How can I color Python logging output?'
https://stackoverflow.com/questions/384076/how-can-i-color-python-logging-output
Thank
Sergey Pleshakov - my code base on your code.
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 xlogger-0.0.2.tar.gz.
File metadata
- Download URL: xlogger-0.0.2.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bb7e443b94ffe466e28265807cbd7f5b2e117a1f196d09cba8ba452092d8379
|
|
| MD5 |
09d8c9ce69d3b849e92224211748e570
|
|
| BLAKE2b-256 |
e7cbae777dc711b7ad6eebc26e5af023c1e6a2505333a4398a39ac130d2a8237
|
File details
Details for the file xlogger-0.0.2-py3-none-any.whl.
File metadata
- Download URL: xlogger-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f987728b5ae80058dc831d54e98ca2e75aa7f191d02894a1778a32a4f6828f0b
|
|
| MD5 |
017cebf18edc09a052734e13a3d1940b
|
|
| BLAKE2b-256 |
74b06fb9a68278d5f86533f9a12aaa792623b900728c7bc36bcd3b9cd52e9c27
|