class Fluent::Plugin::StdoutFormatter
Constants
- TIME_FORMAT
Public Instance Methods
after_shutdown()
click to toggle source
Calls superclass method
Fluent::Plugin::Base#after_shutdown
# File lib/fluent/plugin/formatter_stdout.rb, line 59 def after_shutdown @sub_formatter.after_shutdown super end
before_shutdown()
click to toggle source
Calls superclass method
Fluent::Plugin::Base#before_shutdown
# File lib/fluent/plugin/formatter_stdout.rb, line 49 def before_shutdown @sub_formatter.before_shutdown super end
close()
click to toggle source
Calls superclass method
Fluent::Plugin::Base#close
# File lib/fluent/plugin/formatter_stdout.rb, line 64 def close @sub_formatter.close super end
configure(conf)
click to toggle source
Calls superclass method
Fluent::Plugin::Base#configure
# File lib/fluent/plugin/formatter_stdout.rb, line 28 def configure(conf) super @sub_formatter = Plugin.new_formatter(@output_type, parent: self.owner) @sub_formatter.configure(conf) end
format(tag, time, record)
click to toggle source
# File lib/fluent/plugin/formatter_stdout.rb, line 40 def format(tag, time, record) "#{Time.at(time).localtime.strftime(TIME_FORMAT)} #{tag}: #{@sub_formatter.format(tag, time, record).chomp}\n" end
shutdown()
click to toggle source
Calls superclass method
Fluent::Plugin::Base#shutdown
# File lib/fluent/plugin/formatter_stdout.rb, line 54 def shutdown @sub_formatter.shutdown super end
start()
click to toggle source
Calls superclass method
Fluent::Plugin::Base#start
# File lib/fluent/plugin/formatter_stdout.rb, line 35 def start super @sub_formatter.start end
stop()
click to toggle source
Calls superclass method
Fluent::Plugin::Base#stop
# File lib/fluent/plugin/formatter_stdout.rb, line 44 def stop @sub_formatter.stop super end
terminate()
click to toggle source
Calls superclass method
Fluent::Plugin::Base#terminate
# File lib/fluent/plugin/formatter_stdout.rb, line 69 def terminate @sub_formatter.terminate super end