Class: Fluent::Format::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/fluent/format/cli.rb

Instance Method Summary collapse

Instance Method Details

#start ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/fluent/format/cli.rb', line 10

def start
  config = @options[:config]
  $log = Fluent::Log.new(STDERR, Fluent::Log::LEVEL_WARN)
  puts Fluent::Format.format_config(config)
rescue => e
  $log.error "#{e.class}: #{e}"
  exit 1
end