Class: LoggerFacade::Plugins::Logstash

Inherits:
Base
  • Object
show all
Defined in:
lib/logger_facade/plugins/logstash.rb

Defined Under Namespace

Classes: LogDeviceWithRotation, LogDeviceWithoutRotation

Instance Attribute Summary

Attributes inherited from Base

#config, #level, #name

Instance Method Summary collapse

Methods inherited from Base

#debug, #error, #info, #is_debug, #trace, #warn

Constructor Details

#initialize(configuration = {}) ⇒ Logstash

Returns a new instance of Logstash.



7
8
9
10
11
# File 'lib/logger_facade/plugins/logstash.rb', line 7

def initialize(configuration = {})
  super("LoggerFacade::Plugins::Logstash", configuration)

  fail "Invalid configuration filename: #{config.filename}" unless config.filename
end