Class: Capturing::FluentdEmbed
- Inherits:
-
Object
- Object
- Capturing::FluentdEmbed
- Defined in:
- lib/capture.rb
Instance Method Summary collapse
- #boot ⇒ Object
-
#initialize(config_path) ⇒ FluentdEmbed
constructor
A new instance of FluentdEmbed.
Constructor Details
#initialize(config_path) ⇒ FluentdEmbed
Returns a new instance of FluentdEmbed.
144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/capture.rb', line 144 def initialize(config_path) @opts = { config_path: config_path, plugin_dirs: [], log_level: 2, libs: [], suppress_repeated_stacktrace: true, use_v1_config: true, supervise: true, standalone_worker: true } end |
Instance Method Details
#boot ⇒ Object
157 158 159 |
# File 'lib/capture.rb', line 157 def boot Fluent::Supervisor.new(@opts).run_worker end |