json-logging-python icon indicating copy to clipboard operation
json-logging-python copied to clipboard

Is there a way to indejct extra properties?

Open cheog opened this issue 3 years ago • 0 comments

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?

cheog avatar Nov 10 '22 14:11 cheog