Class: MEE::RFC5424::LoggerProtocolAdapter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(protocol) ⇒ LoggerProtocolAdapter

Returns a new instance of LoggerProtocolAdapter.



111
112
113
114
115
# File 'lib/mee/rfc5424.rb', line 111

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

Instance Attribute Details

#protocolObject

Returns the value of attribute protocol.



109
110
111
# File 'lib/mee/rfc5424.rb', line 109

def protocol
  @protocol
end

Instance Method Details

#nameObject



121
# File 'lib/mee/rfc5424.rb', line 121

def name; protocol.meta.proc_name; end

#name=(new_value) ⇒ Object



122
# File 'lib/mee/rfc5424.rb', line 122

def name=( new_value ) ; protocol.meta.proc_name = new_value; end

#write(entry) ⇒ Object



117
118
119
# File 'lib/mee/rfc5424.rb', line 117

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