Skip to main content

A basic logging library for Python.

Project description

log.py

Python_Shield

📖 About:

A basic logging library for Python with the capability to:

  • save to files.
  • have custom formats.
  • have custom levels.
  • be used instantiated.
  • be used non-instantiated.

📝 Basic Usage:

(For more advanced uses, please refer to the given examples or the documentation.)

Instantiated:

  • Code:
from logpy import Logger
from logpy.log import Levels

logger = Logger()
logger.log("Hello World!")
logger.log("Oh no, something went wrong!", Levels.error)
  • Terminal:
    img.png

Non-instantiated:

  • Code:
from logpy import Logger
from logpy.log import Levels

Logger.slog("Hello World!")
Logger.slog("Oh no, something went wrong!", Levels.error)
  • Terminal:
    img.png

🔧 Examples:

Click me!

📚 Documentation:

❗ Requirements:

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

log.py-0.0.1.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

log.py-0.0.1-py3-none-any.whl (6.7 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