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 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

MIT

Contributors

Project Director

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-1.0.0.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

ipyllogger-1.0.0-py3-none-any.whl (4.5 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