Skip to content

berislavlopac/unclogger

Repository files navigation

Unclogger

Simple Python library for customizable structured logging.

Documentation Status

Quick Intro

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

Output:

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