Class: Cri::CommandDSL

Inherits:
Object
  • Object
show all
Includes:
R10K::Logging
Defined in:
lib/r10k/cli/ext/logging.rb

Instance Method Summary collapse

Methods included from R10K::Logging

formatter, included, level, level=, outputter

Instance Method Details

#loggerObject



8
9
10
11
12
13
14
# File 'lib/r10k/cli/ext/logging.rb', line 8

def logger
  unless @logger
    @logger = Log4r::Logger.new(@command.name)
    @logger.add R10K::Logging.outputter
  end
  @logger
end