Skip to main content

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


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)

Uploaded Source

Built Distribution

neuro_logging-21.12.0-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page