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 60 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 50 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 65 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 @time_formatter = Strftime.new(@time_format || TIME_FORMAT) @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 41 def format(tag, time, record) "#{@time_formatter.exec(Time.at(time).localtime)} #{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 55 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 36 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 45 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 70 def terminate @sub_formatter.terminate super end