A basic logging library for Python.
Project description
log.py
📖 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:
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:
🔧 Examples:
📚 Documentation:
❗ Requirements:
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a473759bb9d1dbe359575d7120e2efe1fb7f96250fae2fd9efc04c9035b36d28
|
|
| MD5 |
5df59a5c07086abfc0bd4fb05844b34e
|
|
| BLAKE2b-256 |
d3c8fd60b254100e472d8e5edc811c9a510c957d0ea7fabe640e051ec436824b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3c8091332b1c864e4055185ac858670f86eaf43f46698904a9ba7690d95c313
|
|
| MD5 |
2596af7e0aeda865a3f50c6726c5a3b6
|
|
| BLAKE2b-256 |
2ddd728abcd0b2d8b30538f416dc21967da89fc80bc26ecf4e8a14b6071dc7ee
|