Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def format(self, record):
result = colorlog.ColoredFormatter.format(self, record)
return result.replace('[logsymbol]', UNICODE_ICONS[record.levelno])
def format(self, record):
result = colorlog.ColoredFormatter.format(self, record)
return result.format(logsymbol=UNICODE_ICONS[record.levelno])
except ImportError:
def format(self, record):
result = colorlog.ColoredFormatter.format(self, record)
return result.replace(
'[logsymbol]',
UNICODE_ICONS[record.levelno]
)