class R10K::Logging::TerminalOutputter

Constants

COLORS

Attributes

use_color[RW]

Private Instance Methods

format(logevent) click to toggle source
Calls superclass method
# File lib/r10k/logging/terminaloutputter.rb, line 25
def format(logevent)
  string = super
  if @use_color
    color = COLORS[logevent.level]
    color ? string.send(color) : string
  else
    string
  end
end