|
|
@ -3,7 +3,8 @@ require 'rainbow' |
|
|
|
# ColoredFormatter outputs colored message according to severity |
|
|
|
class ColoredFormatter < Logger::Formatter |
|
|
|
def call(severity, _time, _program_name, message) # rubocop:disable Metrics/MethodLength |
|
|
|
msg = message.is_a?(String) ? message : message.inspect |
|
|
|
# msg = message.is_a?(String) ? message : message.inspect |
|
|
|
msg = message |
|
|
|
tint = case severity |
|
|
|
when 'DEBUG' |
|
|
|
:darkgray |
|
|
|