本文整理汇总了PHP中logger::getRootlogger方法的典型用法代码示例。如果您正苦于以下问题:PHP logger::getRootlogger方法的具体用法?PHP logger::getRootlogger怎么用?PHP logger::getRootlogger使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类logger
的用法示例。
在下文中一共展示了logger::getRootlogger方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($smarty, $basetpl = "", $pagetitle = "", $pagename = "")
{
$this->logger = logger::getRootlogger();
if (defined('SESSION')) {
$this->session = SESSION;
} else {
$this->logger->debug("Session is not defined");
}
if (defined('MODULE')) {
$this->module = MODULE;
} else {
$this->logger->debug("Module is not defined");
}
if (defined('ACTION')) {
$this->action = ACTION;
} else {
$this->logger->debug("Action is not defined");
}
$this->smarty = $smarty;
$this->viewdata["pagetitle"] = $pagetitle;
$this->viewdata["pagename"] = $pagename;
if (strlen($basetpl) == 0) {
$this->viewdata["basetpl"] = "index.tpl";
} else {
$this->viewdata["basetpl"] = $basetpl;
}
}
示例2: __construct
public function __construct($type, $logger)
{
$this->logger = $logger;
$this->logger->info("Function constructor in ModelAccess");
$this->dbobj = new ModelObject($type);
$this->logger = logger::getRootlogger();
return true;
}
示例3: __construct
public function __construct()
{
$this->logger = logger::getRootlogger();
if (defined("SIZETYPE")) {
$this->data["sizetype"] = SIZETYPE;
} else {
$this->data["sizetype"] = "medium";
}
}
示例4: __construct
public function __construct()
{
$this->logger = logger::getRootlogger();
$this->logger->info("Calling Constructor in MysqliManager");
$this->data["username"] = DATABASE_USER;
$this->data["password"] = DATABASE_PASS;
$this->data["host"] = DATABASE_HOST;
$this->data["port"] = DATABASE_PORT;
$this->data["database"] = DATABASE_NAME;
}
示例5: __construct
public function __construct($type)
{
$this->logger = logger::getRootlogger();
if (strtolower($type) == "mysqli") {
$this->database = new Mysqli();
} else {
if (strtolower($type) == "mysql") {
$this->database = new MysqlManager();
} else {
$this->database = null;
return false;
}
}
$this->query = new Query($this->database);
$this->nonquery = new NonQuery($this->database);
return true;
}
示例6: Query
public function Query($database)
{
$this->connection = $database;
$this->logger = logger::getRootlogger();
$this->logger->info("Calling Constructor in Query");
}
示例7: __set
public function __set($key, $val)
{
$key = strtolower($key);
$this->data[$key] = $val;
$this->logger = logger::getRootlogger();
}
示例8: define
*/
define("TEMP_DIR", "tmp/");
/* **************************************************************************** */
/*
* Custom variable witch is define in file placed in directory config/smarty.config.php
*/
include_once "smarty.config.php";
define('GV_VAR', serialize($gv_var));
/* **************************************************************************** */
/*
* Include database configuration file.
*/
include_once "dbconfig.php";
/* **************************************************************************** */
/*
* Include common library file. The function contains this file can be access from anywhere directly.
*/
include_once "common.lib.php";
/* **************************************************************************** */
/*
* Include controller file.
*/
include_once "Controller.php";
/* **************************************************************************** */
/*
* Include logger class to implement debug, error and fatal log feature.
*/
require_once "Logger.php";
Logger::configure(LOG4PHP_CONFIGURATION);
$logger = logger::getRootlogger();
/* **************************************************************************** */
示例9: __construct
public function __construct()
{
$this->logger = logger::getRootlogger();
}