bobbui/json-logging-python

Is there a way to indejct extra properties?

cheog opened this issue · 0 comments

cheog commented

I have a top level function that has a whole bunch of meta-info. The top level function calls lower level functions that don't need, and thus aren't passed, that info. I'd like to add all the meta-info to some context so that if any lower level function logs something, the meta-info is included in the extra properties. This is all running outside of a fastapi or other web context.

Is this possible?