Class: MEE::RFC5424::LoggerProtocolAdapter
- Inherits:
-
Logger
- Object
- Logger
- MEE::RFC5424::LoggerProtocolAdapter
- Defined in:
- lib/mee/rfc5424.rb
Instance Attribute Summary collapse
-
#protocol ⇒ Object
Returns the value of attribute protocol.
Instance Method Summary collapse
-
#initialize(protocol) ⇒ LoggerProtocolAdapter
constructor
A new instance of LoggerProtocolAdapter.
- #name ⇒ Object
- #name=(new_value) ⇒ Object
- #write(entry) ⇒ Object
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
#protocol ⇒ Object
Returns the value of attribute protocol.
109 110 111 |
# File 'lib/mee/rfc5424.rb', line 109 def protocol @protocol end |
Instance Method Details
#name ⇒ Object
121 |
# File 'lib/mee/rfc5424.rb', line 121 def name; protocol..proc_name; end |
#name=(new_value) ⇒ Object
122 |
# File 'lib/mee/rfc5424.rb', line 122 def name=( new_value ) ; protocol..proc_name = new_value; end |
#write(entry) ⇒ Object
117 118 119 |
# File 'lib/mee/rfc5424.rb', line 117 def write( entry ) self.protocol.( entry ) end |