Skip to main content

Logging client for Neu.ro platform services

Project description

Neuro Platform Logging

Usage:

import logging

from neuro_logging import init_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 DEFAULT_CONFIG, init_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-24.2.1.tar.gz (10.6 kB view hashes)

Uploaded Source

Built Distribution

neuro_logging-24.2.1-py3-none-any.whl (6.2 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