I've been reading the Python logging documentation, and its certainly has a lot of functionality...for everything.
The problem I'm facing is that I'm not Dutch and so I'm not sure what the right way to do this is.
I am running events in a simulator, and I would like to prefix every log message with the timestamp of the simulated time (probably with a length formatter too, just to keep it looking good). I could change this in a subclass of Logger
or Handler
, but I don't think that is the right way.
I think the right way is to use a LoggerAdapter
or a Filter
. Is this right, and if so, which one should I prefer?