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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipyllogger-1.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file ipyllogger-1.0.0.tar.gz.

File metadata

  • Download URL: ipyllogger-1.0.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ipyllogger-1.0.0.tar.gz
Algorithm Hash digest
SHA256 123e3fe46a4d462f4e38240a5c7f1536d91ce53b290bcd8a72b4130a09a5ef29
MD5 cd8bfe17aff36dd895e9eeba759a4bc7
BLAKE2b-256 f8ec043695c0165b5f527dea288fedcd741dc682de4a67f9a073d101e9cd4787

See more details on using hashes here.

File details

Details for the file ipyllogger-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ipyllogger-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ipyllogger-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8536085a29ddca07bb4962c2f62eddffbc0fe4b5224e6cc1c3eec3547df34d95
MD5 9e2e44ca48f6b1f974b3e565f3362ae7
BLAKE2b-256 272e17ba3126d9eadd107d0fe403917eb8551635c7437d48b0b4da09120bce35

See more details on using hashes here.

Supported by

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