Class: Cri::CommandDSL

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

Constant Summary

Constants included from R10K::Logging

R10K::Logging::LOG_LEVELS, R10K::Logging::SYSLOG_LEVELS_MAP

Instance Method Summary collapse

Methods included from R10K::Logging

add_outputters, debug_formatter, default_formatter, default_outputter, #logger_name, parse_level

Instance Method Details

#loggerObject



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

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