Skip to content

Instantly share code, notes, and snippets.

@gmacdougall
Created September 19, 2013 23:41
Show Gist options
  • Save gmacdougall/6631405 to your computer and use it in GitHub Desktop.
Save gmacdougall/6631405 to your computer and use it in GitHub Desktop.
unicorn syslog
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