Class: Dynflow::LoggerAdapters::Formatters::Abstract
- Inherits:
-
Object
- Object
- Dynflow::LoggerAdapters::Formatters::Abstract
- Defined in:
- lib/dynflow/logger_adapters/formatters/abstract.rb
Direct Known Subclasses
Instance Method Summary collapse
- #format(message) ⇒ Object
-
#initialize(base) ⇒ Abstract
constructor
A new instance of Abstract.
- #level ⇒ Object
- #level=(v) ⇒ Object
Constructor Details
#initialize(base) ⇒ Abstract
Returns a new instance of Abstract.
5 6 7 |
# File 'lib/dynflow/logger_adapters/formatters/abstract.rb', line 5 def initialize(base) @base = base end |
Instance Method Details
#format(message) ⇒ Object
27 28 29 |
# File 'lib/dynflow/logger_adapters/formatters/abstract.rb', line 27 def format() raise NotImplementedError end |
#level ⇒ Object
23 24 25 |
# File 'lib/dynflow/logger_adapters/formatters/abstract.rb', line 23 def level @base.level end |
#level=(v) ⇒ Object
19 20 21 |
# File 'lib/dynflow/logger_adapters/formatters/abstract.rb', line 19 def level=(v) @base.level = v end |