fluentd-ui/app/models/fluentd/setting/out_stdout.rb
Kenji Okimoto a8401530ab
Use new style definition
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-24 18:26:17 +09:00

34 lines
567 B
Ruby

class Fluentd
module Setting
class OutStdout
include Fluentd::Setting::Plugin
register_plugin("output", "stdout")
def self.initial_params
{
pattern: "debug.**",
format: {
"0" => {
"@type" => "stdout",
"output_type" => "json"
}
}
}
end
def common_options
[
:pattern, :output_type
]
end
def hidden_options
[
:secondary, :inject, :buffer
]
end
end
end
end