lib/ougai/formatters/bunyan.rb in ougai-1.4.4 vs lib/ougai/formatters/bunyan.rb in ougai-1.5.0
- old
+ new
@@ -26,21 +26,23 @@
}.merge(data))
end
def to_level(severity)
case severity
+ when 'TRACE'
+ 10
+ when 'DEBUG'
+ 20
when 'INFO'
30
when 'WARN'
40
when 'ERROR'
50
when 'FATAL'
60
- when 'ANY'
+ else
70
- else # DEBUG
- 20
end
end
private