Class: Fluent::Plugin::StdoutFormatter
Constant Summary
Configurable::CONFIG_TYPE_REGISTRY
Instance Attribute Summary
Attributes inherited from Base
#under_plugin_development
Instance Method Summary
collapse
included, #time_formatter_create
#log, #owner, #owner=
Methods inherited from Base
#after_shutdown?, #after_start, #after_started?, #before_shutdown?, #closed?, #configured?, #has_router?, #initialize, #inspect, #shutdown?, #started?, #stopped?, #terminated?
#system_config, #system_config_override
#config, included, #initialize, lookup_type, register_type
Instance Method Details
#after_shutdown ⇒ Object
58
59
60
61
|
# File 'lib/fluent/plugin/formatter_stdout.rb', line 58
def after_shutdown
@sub_formatter.after_shutdown
super
end
|
#before_shutdown ⇒ Object
48
49
50
51
|
# File 'lib/fluent/plugin/formatter_stdout.rb', line 48
def before_shutdown
@sub_formatter.before_shutdown
super
end
|
#close ⇒ Object
63
64
65
66
|
# File 'lib/fluent/plugin/formatter_stdout.rb', line 63
def close
@sub_formatter.close
super
end
|
26
27
28
29
30
31
|
# 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
|
38
39
40
41
|
# File 'lib/fluent/plugin/formatter_stdout.rb', line 38
def format(tag, time, record)
= "#{Time.now.localtime} #{tag}: "
"#{}#{@sub_formatter.format(tag, time, record)}"
end
|
#shutdown ⇒ Object
53
54
55
56
|
# File 'lib/fluent/plugin/formatter_stdout.rb', line 53
def shutdown
@sub_formatter.shutdown
super
end
|
#start ⇒ Object
33
34
35
36
|
# File 'lib/fluent/plugin/formatter_stdout.rb', line 33
def start
super
@sub_formatter.start
end
|
#stop ⇒ Object
43
44
45
46
|
# File 'lib/fluent/plugin/formatter_stdout.rb', line 43
def stop
@sub_formatter.stop
super
end
|
#terminate ⇒ Object
68
69
70
71
|
# File 'lib/fluent/plugin/formatter_stdout.rb', line 68
def terminate
@sub_formatter.terminate
super
end
|