本文整理匯總了PHP中SimpleSAML_Logger::getCapturedLog方法的典型用法代碼示例。如果您正苦於以下問題:PHP SimpleSAML_Logger::getCapturedLog方法的具體用法?PHP SimpleSAML_Logger::getCapturedLog怎麽用?PHP SimpleSAML_Logger::getCapturedLog使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SimpleSAML_Logger
的用法示例。
在下文中一共展示了SimpleSAML_Logger::getCapturedLog方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: SimpleSAML_XHTML_Template
}
if ($resEntry[0] == 0) {
$ok = FALSE;
echo "Error (" . $tag . ") : " . $resEntry[1] . "\n";
}
}
if ($ok) {
echo 'OOOKKK';
}
exit;
}
$t = new SimpleSAML_XHTML_Template($config, 'ldapstatus:ldapsinglehost.php');
$t->data['res'] = $res;
$t->data['cli'] = $tester->getCLI();
$t->data['org'] = $orgs[$_REQUEST['orgtest']];
$t->data['debugLog'] = SimpleSAML_Logger::getCapturedLog();
if ($isAdmin) {
$t->data['secretURL'] = $secretURL;
}
$t->show();
exit;
}
function mergeWithTemplate($location, $template)
{
foreach ($template as $key => $value) {
if (!array_key_exists($key, $location)) {
$location[$key] = $value;
}
}
return $location;
}
示例2: array_unique
$source['blacklist'] = $blacklist;
}
# Merge global and src specific whitelists
if (isset($source['whitelist'])) {
$source['whitelist'] = array_unique(array_merge($source['whitelist'], $whitelist));
} else {
$source['whitelist'] = $whitelist;
}
SimpleSAML_Logger::debug('[metarefresh]: In set [' . $setkey . '] loading source [' . $source['src'] . ']');
$metaloader->loadSource($source);
}
$outputDir = $set->getString('outputDir');
$outputDir = $config->resolvePath($outputDir);
$outputFormat = $set->getValueValidate('outputFormat', array('flatfile', 'serialize'), 'flatfile');
switch ($outputFormat) {
case 'flatfile':
$metaloader->writeMetadataFiles($outputDir);
break;
case 'serialize':
$metaloader->writeMetadataSerialize($outputDir);
break;
}
} catch (Exception $e) {
$e = SimpleSAML_Error_Exception::fromException($e);
$e->logWarning();
}
}
$logentries = SimpleSAML_Logger::getCapturedLog();
$t = new SimpleSAML_XHTML_Template($config, 'metarefresh:fetch.tpl.php');
$t->data['logentries'] = $logentries;
$t->show();