Skip to main content
zonar_ds_logger
======

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 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zonar-ds-logger 0.0.1
File Size Uploaded
zonar_ds_logger-0.0.1.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zonar-ds-logger 0.0.1
File Interpreter ABI Platform
zonar_ds_logger-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / zonar_ds_logger-0.0.1.tar.gz

Download URL zonar_ds_logger-0.0.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
17bf566954e9a5569894b3cec213b9066f7614dee6b9203f4e0708563d2d25e4
BLAKE2b-256 checksum
How to use checksums
54525842d742dce662563c9d9b98ff29b272cdb37d1dfcc59e3149e811702369
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-0.0.1-py3-none-any.whl

Download URL zonar_ds_logger-0.0.1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a947dcae77e356e06658088d02c3c2dcef58312809beb5653c0b634c708e092
BLAKE2b-256 checksum
How to use checksums
a836ffa55784a57692a705fe69441c02ef78073768082922b449e8b163955a53
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 history Release notifications | RSS feed

1.0.0

2 release files

0.0.2

2 release files

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page