Method: Compass::Logger#record

Defined in:
lib/compass/logger.rb

#record(action, *arguments) ⇒ Object

Record an action that has occurred



60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/compass/logger.rb', line 60

def record(action, *arguments)
  return if options[:quiet] && ACTION_CAN_BE_QUIET[action]
  msg = ""
  if time
    msg << Time.now.strftime("%I:%M:%S.%3N %p")
  end
  msg << color(ACTION_COLORS[action]) if Compass.configuration.color_output
  msg << "#{action_padding(action)}#{action}"
  msg << color(:clear) if Compass.configuration.color_output
  msg << " #{arguments.join(' ')}"
  log msg
end