Class: Dynflow::LoggerAdapters::Formatters::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/dynflow/logger_adapters/formatters/abstract.rb

Direct Known Subclasses

Exception

Instance Method Summary collapse

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

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/dynflow/logger_adapters/formatters/abstract.rb', line 27

def format(message)
  raise NotImplementedError
end

#levelObject



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