log icon indicating copy to clipboard operation
log copied to clipboard

Would be nice to be able to change format without subclassing

Open jspalink opened this issue 10 years ago • 1 comments

Python does this really well: https://docs.python.org/2/library/logging.html#formatter-objects

It would be nice to be able to change the output format of the logger without having to create a subclass of the LogFormatter, which really looks like its geared to providing output that is significantly different - e.g. the Json example in the test case. But, for example, changing the default output to just the message as opposed to a date prefix doesn't seem like it should require writing a new class.

jspalink avatar Jan 27 '16 20:01 jspalink

I did work on that aspect many months ago. Never got round to releasing it.

I will try to set some time to do just that! Bear with me.

frqnck avatar Feb 02 '16 17:02 frqnck