Class: FileUtils::LoggerAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/scm_workspace/core_ext/fileutils.rb

Instance Method Summary collapse

Constructor Details

#initialize(logger, level) ⇒ LoggerAdapter

Returns a new instance of LoggerAdapter.



51
52
53
# File 'lib/scm_workspace/core_ext/fileutils.rb', line 51

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

Instance Method Details

#puts(msg) ⇒ Object



54
55
56
# File 'lib/scm_workspace/core_ext/fileutils.rb', line 54

def puts(msg)
  @logger.send(@level, msg)
end