Skip to main content

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.

Metadata

Release files for xlogger 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xlogger 0.0.2
File Size Uploaded
xlogger-0.0.2.tar.gz 1.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xlogger 0.0.2
File Interpreter ABI Platform
xlogger-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 4.3 kB

Release files / xlogger-0.0.2.tar.gz

Download URL xlogger-0.0.2.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4bb7e443b94ffe466e28265807cbd7f5b2e117a1f196d09cba8ba452092d8379
BLAKE2b-256 checksum
How to use checksums
e7cbae777dc711b7ad6eebc26e5af023c1e6a2505333a4398a39ac130d2a8237
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / xlogger-0.0.2-py3-none-any.whl

Download URL xlogger-0.0.2-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f987728b5ae80058dc831d54e98ca2e75aa7f191d02894a1778a32a4f6828f0b
BLAKE2b-256 checksum
How to use checksums
74b06fb9a68278d5f86533f9a12aaa792623b900728c7bc36bcd3b9cd52e9c27
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page