Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/berislavlopac/unclogger

Simple library for customisable structured logging.
https://github.com/berislavlopac/unclogger

logging logging-library structured-logging

Last synced: 7 days ago
JSON representation

Simple library for customisable structured logging.

Awesome Lists containing this project

README

        

Unclogger
=========

Simple Python library for customizable structured logging.

[![Documentation Status](https://readthedocs.org/projects/unclogger/badge/?version=latest)](https://unclogger.readthedocs.io/en/latest/?badge=latest)

## Quick Intro

```python
from unclogger import get_logger
logger = get_logger("test logger")
logger.info("test test", foo="abc", bar=123)
```

Output:
```json
{
"foo": "abc",
"bar": 123,
"event": "test test",
"logger": "test logger",
"level": "info",
"timestamp": "2021-02-12T22:40:07.600385Z"
}
```