protected function typeToSystemType($type)
    {
        /*
        'emergency' => 7,
        'alert'     => 6,
        'critical'  => 5,
        'error'     => 4,
        'warning'   => 3,
        'notice'    => 2,
        'info'      => 1,
        'debug'     => 0,
         */
        switch ($type) {
            case 'emergency':
                $type = LOG_EMERG;
                break;
            case 'alert':
                $type = LOG_ALERT;
                break;
            case 'critical':
                $type = LOG_CRIT;
                break;
            case 'error':
                $type = LOG_ERR;
                break;
            case 'warning':
                $type = LOG_WARNING;
                break;
            case 'notice':
                $type = LOG_NOTICE;
                break;
            case 'info':
                $type = LOG_INFO;
                break;
            default:
            case 'debug':
                $type = LOG_DEBUG;
                break;
        }

        return $type;
    }