Class: MEE::RFC5424::LoggerProtocolAdapter
- Inherits:
-
Logger
- Object
- Logger
- MEE::RFC5424::LoggerProtocolAdapter
- Defined in:
- lib/mee/rfc5424.rb
Instance Method Summary collapse
-
#initialize(protocol) ⇒ LoggerProtocolAdapter
constructor
A new instance of LoggerProtocolAdapter.
- #write(entry) ⇒ Object
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.( entry ) end |