Python logging formats strings with a syntax I don't see elsewhere in python, like
'format': '%(name)s'
Is there any way to truncate an error message using the formatter, or do I need to override the LogRecord class for that?
This truncates parts of the message (though I can't find the documentation for this feature in the normal places):
'format': '%(name).40s %(message).40s'
I'd rather truncate the entire formatted message, if possible (for an 80 column console, say).