LogPlus
Log Better
Free software: MIT license
Documentation: TBD
Installation
To install LogPlus:
pip install logplus or pip install git+https://github.com/tactlabs/logplus.git
Pip installing the library from local repository:
conda activate <env_name> python setup.py install develop
Usage
To use LogPlus in a project:
import logplus
Sample
Example
import logplus
logger = logplus.get_logger()
result_json = {
'result': 1,
'a' : "two",
'b' : {
"one" : "two"
}
}
logger.info('message test')
logger.info(result_json)
logger.debug('message debug')
logger.warning('message warning')
logger.error('message error')
Output
2024-05-12 16:29:28 info [~/projects/logger-base/test.py:28][startpy] message test
2024-05-12 16:29:28 info [~/projects/logger-base/test.py:29][startpy] {‘result’: 1, ‘a’: ‘two’, ‘b’: {‘one’: ‘two’}}
2024-05-12 16:29:28 debug [~/projects/logger-base/test.py:31][startpy] message debug
2024-05-12 16:29:28 warning [~/projects/logger-base/test.py:32][startpy] message warning
2024-05-12 16:29:28 error [~/projects/logger-base/test.py:33][startpy] message error
Credits
The base code is derived from StructLog (https://github.com/hynek/structlog). As we see a lot of improvement in StructLog we came up with this library.
History
0.1.3 (2024-05-12) ------------------ * Docs updated 0.1.2 (2024-05-12) ------------------ * Base version derived from multiple libs.
Metadata
Release files for logplus 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| logplus-0.1.3.tar.gz | 49.5 kB | Without provenance | Details for logplus-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| logplus-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for logplus-0.1.3-py3-none-any.whl |
Total release size: 110.0 kB
Release files / logplus-0.1.3.tar.gz
| Download URL | logplus-0.1.3.tar.gz |
|---|---|
| Size | 49.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ddbae858879e12912dc00135968ea145422bdaeafc2e667a138ab08f15f16eb
|
|
BLAKE2b-256 checksum How to use checksums |
c177cc3d0397a70ee6585179641dffb581467db843ab3d09d146ac2e8c96164a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Release files / logplus-0.1.3-py3-none-any.whl
| Download URL | logplus-0.1.3-py3-none-any.whl |
|---|---|
| Size | 60.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ddbf4586f5b1e95568d170a491359a27d698526acb9ea466cae79bb6215fc7eb
|
|
BLAKE2b-256 checksum How to use checksums |
b555776df886b978dbfe562600135a5fdc6c16a7ad8c5f333e54b3d05d94de74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Security for logplus 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.