def format_time(self, record: logging.LogRecord): record.db_time_dt = datetime.datetime.fromtimestamp(record.created)