Created
September 19, 2013 23:41
-
-
Save gmacdougall/6631405 to your computer and use it in GitHub Desktop.
unicorn syslog
This file contains hidden or 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
require 'syslog' | |
class Unicorn::Syslog | |
def initialize | |
Syslog.open | |
end | |
def debug(msg) | |
Syslog.debug(msg) | |
end | |
def info(msg) | |
Syslog.info(msg) | |
end | |
def warn(msg) | |
Syslog.warn(msg) | |
end | |
def error(msg) | |
Syslog.err(msg) | |
end | |
def fatal(msg) | |
Syslog.crit(msg) | |
end | |
end | |
logger Unicorn::Syslog.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment