Class: MEE::RFC5424::LoggerProtocolAdapter

Inherits:
Logger
  • Object
show all
Defined in:
lib/mee/rfc5424.rb

Instance Method Summary collapse

Constructor Details

#initialize(protocol) ⇒ LoggerProtocolAdapter

Returns a new instance of LoggerProtocolAdapter.


73
74
75
76
77
# File 'lib/mee/rfc5424.rb', line 73

def initialize( protocol )
	super(nil)
	@logdev = self
	@protocol = protocol
end

Instance Method Details

#write(entry) ⇒ Object


79
80
81
# File 'lib/mee/rfc5424.rb', line 79

def write( entry )
	@protocol.message( entry )
end