Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/berislavlopac/unclogger
- Owner: berislavlopac
- Created: 2022-12-10T21:18:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-29T17:29:36.000Z (11 months ago)
- Last Synced: 2024-12-06T22:34:19.658Z (29 days ago)
- Topics: logging, logging-library, structured-logging
- Language: Python
- Homepage: https://unclogger.readthedocs.io
- Size: 85.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
}
```