Class: ReeLogger::Appender
- Inherits:
-
Object
- Object
- ReeLogger::Appender
- Defined in:
- lib/ree_lib/packages/ree_logger/package/ree_logger/appenders/appender.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#formatter ⇒ Object
readonly
Returns the value of attribute formatter.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
Instance Method Summary collapse
- #append(log_event, progname = nil) ⇒ Object
-
#initialize(level, formatter) ⇒ Appender
constructor
A new instance of Appender.
Constructor Details
#initialize(level, formatter) ⇒ Appender
Returns a new instance of Appender.
6 7 8 9 |
# File 'lib/ree_lib/packages/ree_logger/package/ree_logger/appenders/appender.rb', line 6 def initialize(level, formatter) @level = level @formatter = formatter end |
Instance Attribute Details
#formatter ⇒ Object (readonly)
Returns the value of attribute formatter.
4 5 6 |
# File 'lib/ree_lib/packages/ree_logger/package/ree_logger/appenders/appender.rb', line 4 def formatter @formatter end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
4 5 6 |
# File 'lib/ree_lib/packages/ree_logger/package/ree_logger/appenders/appender.rb', line 4 def level @level end |
Instance Method Details
#append(log_event, progname = nil) ⇒ Object
11 12 13 |
# File 'lib/ree_lib/packages/ree_logger/package/ree_logger/appenders/appender.rb', line 11 def append(log_event, progname = nil) raise NotImplementedError, "should be implemented in derived class" end |