class Keepclean::Formatter

Public Instance Methods

call(severity, timestamp, progname, msg) click to toggle source
# File lib/keepclean/formatter.rb, line 8
def call(severity, timestamp, progname, msg)
  (String === msg ? msg : msg.inspect).split("\n").map do |line|
    "%s %s[%s] %s%s: %s\n" % [Time.at(timestamp).strftime("%b %e %H:%M:%S"), Keepclean.project_name, Keepclean.build_id, tags_text, severity, line]
  end.join
end