Class: Dynflow::LoggerAdapters::Simple::ProgNameWrapper

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

Instance Method Summary collapse

Constructor Details

#initialize(logger, prog_name) ⇒ ProgNameWrapper

Returns a new instance of ProgNameWrapper.



38
39
40
41
# File 'lib/dynflow/logger_adapters/simple.rb', line 38

def initialize(logger, prog_name)
  @logger    = logger
  @prog_name = prog_name
end

Instance Method Details

#levelObject



53
54
55
# File 'lib/dynflow/logger_adapters/simple.rb', line 53

def level
  @logger.level
end

#level=(v) ⇒ Object



49
50
51
# File 'lib/dynflow/logger_adapters/simple.rb', line 49

def level=(v)
  @logger.level = v
end