# 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