|
|
@ -8,7 +8,7 @@ class BasicFormatter < SemanticLogger::Formatters::Color |
|
|
|
NAME_MAX_SIZE = 25 |
|
|
|
TERMINAL_PREFIX = ENV['TERMINAL_PREFIX'].to_i || 0 |
|
|
|
CONTENT_PREFIX = ' '.freeze |
|
|
|
WRAP_PREFIX = ' > '.freeze |
|
|
|
WRAP_PREFIX = ' … '.freeze |
|
|
|
|
|
|
|
ANSI_DEBUG = "\e[90m".freeze |
|
|
|
ANSI_INFO = SemanticLogger::AnsiColors::GREEN |
|
|
@ -77,7 +77,11 @@ class BasicFormatter < SemanticLogger::Formatters::Color |
|
|
|
end |
|
|
|
|
|
|
|
def level |
|
|
|
level = log.level == :info ? ' ' : log.level.to_s.chr.upcase |
|
|
|
level = case log.level |
|
|
|
when :info then ' ' |
|
|
|
when :debug then 'd' |
|
|
|
else log.level.to_s.chr.upcase |
|
|
|
end |
|
|
|
"#{color}╣#{level}╠#{color_map.clear}" |
|
|
|
end |
|
|
|
|
|
|
|