Skip to content

Instantly share code, notes, and snippets.

@kastner
Created August 11, 2008 16:07
Show Gist options
  • Save kastner/4882 to your computer and use it in GitHub Desktop.
Save kastner/4882 to your computer and use it in GitHub Desktop.
require 'syslog'
def log(message)
# $0 is the current script name
Syslog.open($0, Syslog::LOG_PID | Syslog::LOG_CONS) { |s| s.warning message }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment