Skip to content

Instantly share code, notes, and snippets.

@jasonadamyoung
Created December 30, 2010 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonadamyoung/760144 to your computer and use it in GitHub Desktop.
Save jasonadamyoung/760144 to your computer and use it in GitHub Desktop.
syslogging
def log_to_syslog(message)
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