|
|
|
|
|
by reubano
1456 days ago
|
|
I'd just like to plug my lib, pygogo (https://github.com/reubano/pygogo). Here's a structured log example taken from the docs. import pygogo as gogo
kwargs = {'contextual': True}
extra = {'additional': True}
logger = gogo.Gogo('basic').get_structured_logger('base', **kwargs)
logger.debug('message', extra=extra)
# Prints the following to `stdout`:
{"additional": true, "contextual": true, "message": "message"}
|
|