Method: Codesake::Commons::Logging#helo

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

#helo(component, version, pid_file = nil) ⇒ Object



60
61
62
63
64
65
66
# File 'lib/codesake/commons/logging.rb', line 60

def helo(component, version, pid_file = nil)
  @component = component
  STDOUT.print Rainbow("#{Time.now.strftime("%H:%M:%S")} [*] #{@component} v#{version} is starting up\n").white
  send_to_syslog("#{@component} v#{version} is starting up", :helo)
  send_to_file("#{@component} v#{version} is starting up", :helo)
  Codesake::Commons::Io.create_pid_file(pid_file) unless pid_file.nil?
end