|
|
@ -30,7 +30,11 @@ class BasicFormatter < SemanticLogger::Formatters::Color |
|
|
|
else |
|
|
|
log.message |
|
|
|
end |
|
|
|
"#{prefix} #{SemanticLogger::AnsiColors::WHITE}#{message}#{color_map.clear}" |
|
|
|
if log.name == "Rails" || log.name == "ActionView::Base" |
|
|
|
"#{prefix} #{color}#{message}#{color_map.clear}" |
|
|
|
else |
|
|
|
"#{prefix} #{SemanticLogger::AnsiColors::WHITE}#{message}#{color_map.clear}" |
|
|
|
end |
|
|
|
when :warn |
|
|
|
"#{prefix} #{ANSI_REVERSED_WARNING}#{log.message}#{color_map.clear}" |
|
|
|
when :error, :fatal |
|
|
|