Skip to content

Instantly share code, notes, and snippets.

@cyberswat
Created May 8, 2012 16:25
Show Gist options
  • Save cyberswat/2636955 to your computer and use it in GitHub Desktop.
Save cyberswat/2636955 to your computer and use it in GitHub Desktop.
# dirty ruby syslog
def log(msg)
Syslog.open($0, Syslog::LOG_PID | Syslog::LOG_CONS) { |s| s.warning "#{msg}" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment