Adding a prefix to log messages
How does one add a prefix to log messages without knowing what logger is being used? I tried something like this but it doesn't do quite what I am intending.
The API I am sort of looking for is:
So I would like to use whatever logger is provided whether that be
I know I could do the following but was hoping the above would be possible somehow
The API I am sort of looking for is:
So I would like to use whatever logger is provided whether that be
pretty, json variants.I know I could do the following but was hoping the above would be possible somehow
