当前位置: 首页>>代码示例>>PHP>>正文


PHP Logging::initialize方法代码示例

本文整理汇总了PHP中Logging::initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP Logging::initialize方法的具体用法?PHP Logging::initialize怎么用?PHP Logging::initialize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Logging的用法示例。


在下文中一共展示了Logging::initialize方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getBackend

 protected function getBackend()
 {
     Logging::initialize(self::$CONFIGURATION, "Test");
     $this->responseHandler = new TestResponseHandler();
     $db = PDODatabase::createFromObj(self::$pdo, "sqlite");
     $settings = new Settings(self::$CONFIGURATION);
     $backend = new MollifyBackend($settings, $db, $this->responseHandler);
     //$backend->processRequest(new Request());
     return $backend;
 }
开发者ID:mobas,项目名称:mollify,代码行数:10,代码来源:TestCase.php

示例2: __construct

 public function __construct($pageRoot, $type, $settingsVar)
 {
     $this->pageRoot = $pageRoot;
     $this->type = $type;
     $this->settingsVar = $settingsVar;
     foreach ($_POST as $key => $val) {
         $this->data[$key] = $val;
     }
     require_once "include/Logging.class.php";
     Logging::initialize($this->settingsVar);
     Logging::logDebug("Installer: " . get_class($this));
 }
开发者ID:kumarsivarajan,项目名称:mollify,代码行数:12,代码来源:MollifyInstallProcessor.class.php

示例3: __construct

 public function __construct($conf)
 {
     require_once "include/Settings.class.php";
     require_once "include/session/Session.class.php";
     require_once "include/ServiceEnvironment.class.php";
     require_once "include/Util.class.php";
     require_once "db/DBConnectionFactory.class.php";
     require_once "include/configuration/ConfigurationDao.class.php";
     require_once "include/Logging.class.php";
     require_once "include/Version.info.php";
     require_once "include/Cookie.class.php";
     require_once "include/Features.class.php";
     require_once "include/Request.class.php";
     Logging::initialize($conf);
     $this->settings = new Settings($conf);
     $this->session = new Session(TRUE);
     $f = new DBConnectionFactory();
     $db = $f->createConnection($this->settings);
     $this->configuration = new ConfigurationDao($db);
     $this->env = new ServiceEnvironment($db, $this->session, new VoidResponseHandler(), $this->configuration, $this->settings);
     $this->env->initialize(Request::get(TRUE));
     $this->authentication = $this->env->authentication();
 }
开发者ID:Zveroloff,项目名称:kloudspeaker,代码行数:23,代码来源:KloudspeakerExternalInterface.class.php

示例4: set_exception_handler

    $responseHandler->unknownServerError($e->getMessage());
    die;
}
set_exception_handler('globalExceptionHandler');
/*function fatalErrorHandler() {
		global $responseHandler;
		$info = "PHP fatal error: ".Util::array2str(error_get_last());
		Logging::logError($info);
		if ($responseHandler == NULL) $responseHandler = new ResponseHandler(new OutputHandler());
		$responseHandler->unknownServerError($info);
		die();
	}
	register_shutdown_function("fatalErrorHandler");*/
require_once "configuration.php";
global $CONFIGURATION, $VERSION;
Logging::initialize($CONFIGURATION, $VERSION);
require_once "include/MollifyBackend.class.php";
require_once "include/Settings.class.php";
$responseHandler = new ResponseHandler(new OutputHandler(getSetting($CONFIGURATION, 'mime_types', array()), isSetting($CONFIGURATION, 'support_output_buffer')));
try {
    $settings = new Settings($CONFIGURATION);
    $backend = new MollifyBackend($settings, getDB($settings), $responseHandler);
    $backend->processRequest(new Request());
} catch (ServiceException $e) {
    Logging::logException($e);
    $responseHandler->error($e->type(), $e->details(), $e->data());
} catch (Exception $e) {
    Logging::logException($e);
    $responseHandler->unknownServerError($e->getMessage());
}
function getDB($settings)
开发者ID:kumarsivarajan,项目名称:mollify,代码行数:31,代码来源:r.php


注:本文中的Logging::initialize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。