class Fluent::Plugin::StdoutFormatter
def after_shutdown
def after_shutdown @sub_formatter.after_shutdown super end
def before_shutdown
def before_shutdown @sub_formatter.before_shutdown super end
def close
def close @sub_formatter.close super end
def configure(conf)
def configure(conf) super @time_formatter = Strftime.new(TIME_FORMAT) @sub_formatter = Plugin.new_formatter(@output_type, parent: self.owner) @sub_formatter.configure(conf) end
def format(tag, time, record)
def format(tag, time, record) "#{@time_formatter.exec(Time.at(time).localtime)} #{tag}: #{@sub_formatter.format(tag, time, record).chomp}\n" end
def shutdown
def shutdown @sub_formatter.shutdown super end
def start
def start super @sub_formatter.start end
def stop
def stop @sub_formatter.stop super end
def terminate
def terminate @sub_formatter.terminate super end