public function swrite($severity, $message='')
    {
        if($severity <= LOG_ERR) {
            fwrite(STDERR, $message . "\n");
        } else {
            fwrite(STDOUT, $message . "\n");
        }
    }