/decoratorStructlog

Small project to play with the decorators and the Structlog library.

Primary LanguagePython

decoratorAndStructlog

Small project to play with the decorators and the Structlog library.

Goal of the project

Create a decorator that will use structlog to add a logging system to each function of a class.

One of the goal is to have a trace_id to follow the code and to get easily information about the context when the function is called. For instance, the parameters provided to the function and the error message ...

Different types of output

Development

development output

Production

production output

References