My logger library.
Project description
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
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
python_mylog-0.10.0.tar.gz
(24.4 kB
view details)
Built Distribution
File details
Details for the file python_mylog-0.10.0.tar.gz
.
File metadata
- Download URL: python_mylog-0.10.0.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb82fe0c49afcba3b6e79198c79358f4d15aa9814d163baad84ab06d012270e8 |
|
MD5 | 46202bc5d9afad2c5a21bf485bc544b4 |
|
BLAKE2b-256 | 7b8ad808f86db6ea974f7fc6f1b08047da9fbf3d67e050b79db8e1f5c1052b37 |
File details
Details for the file python_mylog-0.10.0-py3-none-any.whl
.
File metadata
- Download URL: python_mylog-0.10.0-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4e026728ec2329f75a5944fbefc811bf50fbc7db31c448a69db8871a4956207 |
|
MD5 | 2174f6e61f9fbe35c9be2d40f4c934bc |
|
BLAKE2b-256 | 2d43cf9d5cf2269e3bf318e03152954282c07847ef9a2c274e17d76cca345174 |