本文整理汇总了PHP中Logging::createLogFile方法的典型用法代码示例。如果您正苦于以下问题:PHP Logging::createLogFile方法的具体用法?PHP Logging::createLogFile怎么用?PHP Logging::createLogFile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Logging
的用法示例。
在下文中一共展示了Logging::createLogFile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: exit
}
//Test if LODSPeaKr is configured
if (!file_exists('settings.inc.php')) {
echo 'Need to configure lodspeakr first. Please run "install.sh". Alternatively, you can <a href="import">import an existing application</a>';
exit(0);
}
include_once 'common.inc.php';
//Debug output
$conf['logfile'] = null;
if ($conf['debug']) {
include_once 'classes/Logging.php';
if (isset($_GET['q']) && $_GET['q'] == 'logs') {
Logging::init();
exit(0);
} else {
$conf['logfile'] = Logging::createLogFile($_GET['q']);
//error_reporting(E_ALL);
}
} else {
error_reporting(E_ERROR);
}
include_once 'classes/HTTPStatus.php';
include_once 'classes/Utils.php';
include_once 'classes/Queries.php';
include_once 'classes/Endpoint.php';
include_once 'classes/Convert.php';
$results = array();
$firstResults = array();
$endpoints = array();
$endpoints['local'] = new Endpoint($conf['endpoint']['local'], $conf['endpointParams']['config']);
$acceptContentType = Utils::getBestContentType($_SERVER['HTTP_ACCEPT']);