Metadata-Version: 2.1
Name: neuro-logging
Version: 21.10.2
Summary: Logging client for Neu.ro platform services
Home-page: https://github.com/neuro-inc/neuro-logging
License: Apache 2
Platform: UNKNOWN
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# Neuro Platform Logging

Usage:

```python
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

```python
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)
```


