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

Uploaded Source

Built Distribution

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

log.py-0.0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file log.py-0.0.1.tar.gz.

File metadata

  • Download URL: log.py-0.0.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for log.py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a473759bb9d1dbe359575d7120e2efe1fb7f96250fae2fd9efc04c9035b36d28
MD5 5df59a5c07086abfc0bd4fb05844b34e
BLAKE2b-256 d3c8fd60b254100e472d8e5edc811c9a510c957d0ea7fabe640e051ec436824b

See more details on using hashes here.

File details

Details for the file log.py-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: log.py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for log.py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3c8091332b1c864e4055185ac858670f86eaf43f46698904a9ba7690d95c313
MD5 2596af7e0aeda865a3f50c6726c5a3b6
BLAKE2b-256 2ddd728abcd0b2d8b30538f416dc21967da89fc80bc26ecf4e8a14b6071dc7ee

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