SimpleSAML_Error_Exception::log PHP Method

log() public method

Override to allow errors extending this class to specify the log level themselves.
public log ( integer $default_level )
$default_level integer The log level to use if this method was not overridden.
    public function log($default_level)
    {
        $fn = array(SimpleSAML\Logger::ERR => 'logError', SimpleSAML\Logger::WARNING => 'logWarning', SimpleSAML\Logger::INFO => 'logInfo', SimpleSAML\Logger::DEBUG => 'logDebug');
        call_user_func(array($this, $fn[$default_level]), $default_level);
    }