Skip to main content

[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

MIT

Contributors

Project details


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)

Uploaded Source

Built Distribution

ipyllogger-0.0.1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page