class Fluent::Plugin::StdoutFormatter

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 58
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 48
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 63
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 26
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 38
def format(tag, time, record)
  header = "#{Time.now.localtime} #{tag}: "
  "#{header}#{@sub_formatter.format(tag, time, record)}"
end
shutdown() click to toggle source
Calls superclass method Fluent::Plugin::Base#shutdown
# File lib/fluent/plugin/formatter_stdout.rb, line 53
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 33
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 43
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 68
def terminate
  @sub_formatter.terminate
  super
end