Module R10K::Logging
In: lib/r10k/logging/terminaloutputter.rb
lib/r10k/logging.rb

Methods

Classes and Modules

Class R10K::Logging::TerminalOutputter

Constants

LOG_LEVELS = %w{DEBUG2 DEBUG1 DEBUG INFO NOTICE WARN ERROR FATAL}

Attributes

formatter  [R]  @!attribute [r] formatter
  @api private
  @return [Log4r::Formatter]
level  [R]  @!attribute [r] level
  @return [Integer] The current log level. Lower numbers correspond
    to more verbose log levels.
outputter  [R]  @!attribute [r] outputter
  @api private
  @return [Log4r::Outputter]

Public Class methods

Convert the input to a valid Log4r log level

@param input [String, TrueClass] The level to parse. If TrueClass then

  Log4r::INFO will be returned (indicating a generic raised verbosity),
  if a string it will be parsed either as a numeric value or a textual
  log level.

@api private @return [Integer, NilClass] The numeric log level, or nil if the log

  level is invalid.

Public Instance methods

[Validate]