class Daemons::SyslogIO
def syswrite(text)
def syswrite(text) begin @out.syswrite(text) if @out and !@out.closed? rescue SystemCallError => e end text.split(/\n/).each do |line| @subs.each do |sub| line.sub!(sub[0], sub[1]) end if line == '' or line.match(/^\s*$/) then next end Syslog.log(@facility | @level, line) end nil end