[SCHOOL PROJECT - PYTHON BASICS] | Minimum Python package to write logs in a file
Project description
Ipyllogger
[SCHOOL PROJECT - PYTHON BASICS] | Minimum Python package to write logs in a file
Installation
pip install ipyllogger
Tests
make test
Usage
from ipyllogger import log, get_logs
from ipyllogger import level
# Log an error
log("Hello World", level.ERROR)
# Log a warning
log("Hello World", level.WARNING)
# Get all errors logs
print(get_logs(level.ERROR))
# Get all warnings logs
print(get_logs(level.WARNING))
License
Contributors
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
ipyllogger-0.0.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for ipyllogger-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb4c4bcfc3e202671e838060db8a67dc77ebb2b355a531b1bea07d800435edbd |
|
MD5 | b53ff7a2859cc51e1e2000a4304b5672 |
|
BLAKE2b-256 | 893011606a92eb544b8ca6b9713e51e1b336a19d2c9337eb8a6f436715461cc3 |