Created
December 30, 2010 19:04
-
-
Save jasonadamyoung/760144 to your computer and use it in GitHub Desktop.
syslogging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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