Method: Fluent::EngineClass#init

Defined in:
lib/fluent/engine.rb

#init(system_config, supervisor_mode: false) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/fluent/engine.rb', line 52

def init(system_config, supervisor_mode: false)
  @system_config = system_config
  @supervisor_mode = supervisor_mode

  @suppress_config_dump = system_config.suppress_config_dump unless system_config.suppress_config_dump.nil?
  @without_source = system_config.without_source unless system_config.without_source.nil?

  @log_event_verbose = system_config.log_event_verbose unless system_config.log_event_verbose.nil?

  @root_agent = RootAgent.new(log: log, system_config: @system_config)

  self
end