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.10.2.tar.gz
(12.6 kB
view hashes)
Built Distribution
Close
Hashes for neuro_logging-21.10.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa875ab527b31ad510557e94c15c739186bc083824e0f9a5db04af7546ca0226 |
|
MD5 | de98edd6afa49803979ebf65c9c3c59d |
|
BLAKE2b-256 | 0e52219779f04567dc466d3de28c87cd3dc11b6f8efaa2e893a2bfaa8a4cc056 |