You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
# My Custom colorized formatter class BasicFormatter < SemanticLogger::Formatters::Color ANSI_REVERSED_ERROR = "\e[1m\e[7m\e[91m".freeze # Return the complete log level name in uppercase
def initialize # super(ap: { multiline: true }, # time_format: "%H:%M:%S", # color_map: { # info: SemanticLogger::AnsiColors::RED, # warn: SemanticLogger::AnsiColors::YELLOW, # }) super(time_format: "%H:%M:%S", color_map: ColorMap.new(info: SemanticLogger::AnsiColors::RED, warn: SemanticLogger::AnsiColors::YELLOW)) end end
|