class Daemons::SyslogIO

def write(text)

Write to syslog respecting the behavior of the {#sync} setting.
def write(text)
  if @sync then
    syswrite(text)
  else
    text.split(/(\n)/).each do |line|
      @buffer = @buffer + line.to_s
      if line == "\n" then
        flush
      end
    end
  end
end