class Sw::LogFormatter::SimpleFormatter
Public Instance Methods
call(_severity, _time, _progname, msg)
click to toggle source
# File lib/sw/log_formatter/simple_formatter.rb, line 8 def call(_severity, _time, _progname, msg) tag_string = tags.map { |tag| "[#{tag}] " }.join context_string = context.map { |k, v| "[#{k}=#{v}] " }.join tag_string + context_string + msg2str(msg) + "\n" end