Implemented library output for stderr and syslog.