pvincent
1 year ago
5 changed files with 49 additions and 15 deletions
@ -0,0 +1,15 @@ |
|||
# 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 |
Write
Preview
Loading…
Cancel
Save
Reference in new issue