class Syslogger::SimpleFormatter
Borrowed from ActiveSupport. See: github.com/rails/rails/blob/master/activesupport/lib/active_support/tagged_logging.rb
Public Instance Methods
call(_severity, _timestamp, _progname, msg)
click to toggle source
This method is invoked when a log event occurs.
# File lib/syslogger.rb, line 171 def call(_severity, _timestamp, _progname, msg) "#{tags_text}#{msg}" end
tagged(*tags) { |self| ... }
click to toggle source
# File lib/syslogger.rb, line 175 def tagged(*tags) new_tags = push_tags(*tags) yield self ensure pop_tags(new_tags.size) end