You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defformat(self, record: LogRecord) ->str:
"""Generate a timestamped message. :param record: The record (message object) to be logged """returnf"{record.created:<0.3f}: {record.levelname} - {record.msg}"
The only way to customize this format is to subclass the handler. It would be more convienient to just be able to set the format string at the time the handler is initialized, eg:
Right now the log handler has a fixed format:
The only way to customize this format is to subclass the handler. It would be more convienient to just be able to set the format string at the time the handler is initialized, eg:
Better yet, it would be nice to just mimic the way python does formatters:
The text was updated successfully, but these errors were encountered: