A simple logging utility.
Project description
loggy
A simple logging utility.
Installation
To install the package locally use the following:
pip install get-loggy
Features
- Color support
- Custom color support (advanced)
- Add additional logging levels
- Optional log stream vs. log file
- Log record format
- Package level logging
Usage
Loggy exists as a simple interface for some standard logging in Python. This is done at the package level, not by name.
from loggy import loggy
log = loggy.get_loggy()
log.info("Something")
>>> 2022-06-21 20:16:39 PM PDT | INFO | something | (<stdin>:1:<module>) |
Advanced usage
Custom colors can be created or added along with custom logging levels.
See the conftest.py for an example.
Initial setup
The following GitHub secrets will need to be added in order to release the PyPI packages without the CI failing:
TEST_PYPI_API_TOKENPYPI_API_TOKEN
These can be generated using the following links:
Running tests
Pytest is used as the test runner. To install and run tests
use the requirements-dev.txt and execute with pytest.
Note: Use a virtual environment. The steps to create one are left to the user, there are many packages that accomplish this.
pip install -r requirements-dev.txt
pytest
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
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 get-loggy-0.0.3.tar.gz.
File metadata
- Download URL: get-loggy-0.0.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ef6a52f4acb8f1170c2f7478b457ac834b09690b0c62e32c121c223aeae4b99
|
|
| MD5 |
5b40e2076c09d2b61fbb4780d581ec92
|
|
| BLAKE2b-256 |
8df1a30b27aca089f8881e2f541412c776d82ed69807a69cfd469a897d7f0766
|
File details
Details for the file get_loggy-0.0.3-py3-none-any.whl.
File metadata
- Download URL: get_loggy-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca1cdab7f0a961b323c3055ce4fa21bd6ce7bcf6f376bfbe7ad1a60a09ef27af
|
|
| MD5 |
1926ad7aefcb2dba89d2af4137db1154
|
|
| BLAKE2b-256 |
d889bafce983216a3fe8b6cd5b0f0989c49bc922ffc51d21eaf091a983a82e89
|