======
Overview
------
A logger class that initializes a logger and logs in json when specified.
It also redirects flask logs so it doesn’t always show up as ERROR
Usage
------
```python
from zonar_ds_logger.logger import logger
logger.initialize("evan-test", "info", False)
log = logger.get_logger()
log.debug("debug")
log.info("info")
log.warning("warning")
log.error("error")
```
Arguments
------
Parameters that can be passed into logger.initialize are as follows:
- name (str): Name of the logger
- log_level (str): Lowest log level to log. Default is "debug". Options are "debug", "info", "warning", "error"
- json_logging (bool): Whether to log in json or not. Options that evaluate to true are ("true", "t", "1", "y", "yes")
Default converts value in JSON_LOGGING env var to bool if set else True
Metadata
Release files for zonar-ds-logger 1.0.0
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 |
|---|---|---|---|---|
| zonar_ds_logger-1.0.0.tar.gz | 2.8 kB | Without provenance | Details for zonar_ds_logger-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zonar_ds_logger-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for zonar_ds_logger-1.0.0-py3-none-any.whl |
Total release size: 7.1 kB
Release files / zonar_ds_logger-1.0.0.tar.gz
| Download URL | zonar_ds_logger-1.0.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55a60994282b6776084643d253b703ab5ced40c3f5c7c31099cc744575cd1a45
|
|
BLAKE2b-256 checksum How to use checksums |
e69668a9098267b7927a65849c62b58cff32633f044336d6bc02567f6659e290
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / zonar_ds_logger-1.0.0-py3-none-any.whl
| Download URL | zonar_ds_logger-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b2baede5eead0072f27e031d7e08231f17dd7176a7a43e3be42dfecd0c86aee
|
|
BLAKE2b-256 checksum How to use checksums |
e61364c70bf325d9502b1a11ed19b1830aad610b2455856d0ef9ecc5df687eb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for zonar-ds-logger 1.0.0
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.