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