class Fluent::TextFormatter::StdoutFormatter
Public Instance Methods
configure(conf)
click to toggle source
Calls superclass method
Fluent::Formatter#configure
# File lib/fluent/formatter.rb, line 90 def configure(conf) super @formatter = Plugin.new_formatter(@output_type) @formatter.configure(conf) end
format(tag, time, record)
click to toggle source
# File lib/fluent/formatter.rb, line 97 def format(tag, time, record) header = "#{Time.now.localtime} #{tag}: " "#{header}#{@formatter.format(tag, time, record)}" end