[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 Logger
from ipyllogger import level
logger = Logger()
# Log an error
logger.log("Hello World", level.ERROR)
# Log a warning
logger.log("Hello World", level.WARNING)
# Get all errors logs
print(logger.get_logs(level.ERROR))
# Get all warnings logs
print(logger.get_logs(level.WARNING))
License
Contributors
Project Director
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-1.0.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for ipyllogger-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8536085a29ddca07bb4962c2f62eddffbc0fe4b5224e6cc1c3eec3547df34d95 |
|
MD5 | 9e2e44ca48f6b1f974b3e565f3362ae7 |
|
BLAKE2b-256 | 272e17ba3126d9eadd107d0fe403917eb8551635c7437d48b0b4da09120bce35 |