mylog
A simple logging library for Python.
Example/Getting started
First, install it with pip install python-mylog. Need more help?
import mylog
mylog.root.info("Hello, world!")
# Output: <nothing>
# Why? Because the threshold is set to WARNING.
# Try this:
mylog.root.warning("Hello, world!")
# Output: [root WARNING 2023-12-23 13:39:16.127495+00:00 line: 00001] Hello, world!
# Or
mylog.root.threshold = mylog.Level.DEBUG
mylog.root.info("Hello, world!")
# Output: [root INFO 2023-12-23 13:39:34.231029+00:00 line: 00001] Hello, world!
API reference
For the API reference see the docstrings.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Please note, that by contributing to mylog, you accept the DCO. More info
Metadata
Release files for python-mylog 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_mylog-0.10.0.tar.gz | 24.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_mylog-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.7 kB
Release files / python_mylog-0.10.0.tar.gz
| Download URL | python_mylog-0.10.0.tar.gz |
|---|---|
| Size | 24.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb82fe0c49afcba3b6e79198c79358f4d15aa9814d163baad84ab06d012270e8
|
|
BLAKE2b-256 checksum How to use checksums |
7b8ad808f86db6ea974f7fc6f1b08047da9fbf3d67e050b79db8e1f5c1052b37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / python_mylog-0.10.0-py3-none-any.whl
| Download URL | python_mylog-0.10.0-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4e026728ec2329f75a5944fbefc811bf50fbc7db31c448a69db8871a4956207
|
|
BLAKE2b-256 checksum How to use checksums |
2d43cf9d5cf2269e3bf318e03152954282c07847ef9a2c274e17d76cca345174
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|