feat: add presets
This commit is contained in:
@@ -76,6 +76,6 @@ class CustomFormatter(logging.Formatter):
|
||||
}
|
||||
|
||||
def format(self, record: logging.LogRecord):
|
||||
log_fmt = colored(record.name, "green") + " " + self.FORMATS.get(record.levelno)
|
||||
log_fmt = self.FORMATS.get(record.levelno)
|
||||
formatter = logging.Formatter(log_fmt)
|
||||
return formatter.format(record)
|
||||
|
||||
Reference in New Issue
Block a user