lib/ougai/formatters/readable.rb in ougai-1.4.4 vs lib/ougai/formatters/readable.rb in ougai-1.5.0
- old
+ new
@@ -31,19 +31,23 @@
strs.join("\n") + "\n"
end
def colored_level(severity)
case severity
+ when 'TRACE'
+ color = '0;34'
+ when 'DEBUG'
+ color = '0;37'
when 'INFO'
color = '0;36'
when 'WARN'
color = '0;33'
when 'ERROR'
color = '0;31'
when 'FATAL'
color = '0;35'
- else # DEBUG
- color = '0;37'
+ else
+ color = '0;32'
end
"\e[#{color}m#{severity}\e[0m"
end
def create_err_str(data)