lib/log_formatter_json.rb in RTALogger-0.1.4 vs lib/log_formatter_json.rb in RTALogger-1.0.0
- old
+ new
@@ -2,10 +2,10 @@
require_relative 'log_formatter'
module RTALogger
# json formatter which receive log_record and
# returns it's data as json string
- class LogFormatterJSON
+ class LogFormatterJson < LogFormatter
def format(log_record)
return '' unless log_record
jb = Jbuilder.new do |json|
json.occurred_at log_record.occurred_at.strftime('%F %H:%M:%S:%3N')