Logging client for Neu.ro platform services
Project description
Neuro Platform Logging
Usage:
from neuro_logging import init_logging
import logging
init_logging()
logging.info("Some info")
By default init_logging()
will forward all errors
and critical
messages to stderr
. All other type of messages will be forwarded to stdout
.
You can pass own dict-based config with custom setting i.e. for disable warning in asyncio and concurrent
from neuro_logging import init_logging, DEFAULT_CONFIG
import logging
custom_config = dict(DEFAULT_CONFIG)
custom_config.update(
{"loggers": {"asyncio": {"level": "ERROR"}, "concurrent": {"level": "ERROR"}}}
)
init_logging(custom_config)
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
neuro-logging-21.12.2.tar.gz
(12.5 kB
view hashes)
Built Distribution
Close
Hashes for neuro_logging-21.12.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e80af276e5b87e060c6492005e7ababc976337d83350b61540b6329dd7f5996 |
|
MD5 | 8fe537c5283915ae43daaab6373b59ee |
|
BLAKE2b-256 | 3ff31b71ab1e96e43d22a2c492f64c36eb6b27ba15cbe6213bd246d562833d8d |