本文整理汇总了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();