Method: Codesake::Commons::Logging#ok

Defined in:
lib/codesake/commons/logging.rb

#ok(msg) ⇒ Object



46
47
48
49
50
51
# File 'lib/codesake/commons/logging.rb', line 46

def ok(msg)
  return if @silence
  STDOUT.print Rainbow("#{Time.now.strftime("%H:%M:%S")} [*] #{@component}: #{msg}\n").green
  send_to_syslog(msg, :log)
  send_to_file(msg, :log)
end