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.0.tar.gz
(12.4 kB
view hashes)
Built Distribution
Close
Hashes for neuro_logging-21.12.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dacf4baa3f6652a93849bc328543909f446a875cfa24aa695085e56cba24b2f |
|
MD5 | e996687ca1bc3c1477a4abd6f703179e |
|
BLAKE2b-256 | 40c0c16d9c431e4e5eafa7339140dad09a33d3aae7bfcce097d4494f8734de8d |