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


PHP logger::getRootlogger方法代码示例

本文整理汇总了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;
     }
 }
开发者ID:indra012patel,项目名称:gventure_framework,代码行数:27,代码来源:View.php

示例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;
 }
开发者ID:indra012patel,项目名称:gventure_framework,代码行数:8,代码来源:ModelAccess.php

示例3: __construct

 public function __construct()
 {
     $this->logger = logger::getRootlogger();
     if (defined("SIZETYPE")) {
         $this->data["sizetype"] = SIZETYPE;
     } else {
         $this->data["sizetype"] = "medium";
     }
 }
开发者ID:indra012patel,项目名称:gventure_framework,代码行数:9,代码来源:input.class.php

示例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;
 }
开发者ID:indra012patel,项目名称:gventure_framework,代码行数:10,代码来源:MysqliManager.php

示例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;
 }
开发者ID:indra012patel,项目名称:gventure_framework,代码行数:17,代码来源:dataobject.php

示例6: Query

 public function Query($database)
 {
     $this->connection = $database;
     $this->logger = logger::getRootlogger();
     $this->logger->info("Calling Constructor in Query");
 }
开发者ID:indra012patel,项目名称:gventure_framework,代码行数:6,代码来源:Query.php

示例7: __set

 public function __set($key, $val)
 {
     $key = strtolower($key);
     $this->data[$key] = $val;
     $this->logger = logger::getRootlogger();
 }
开发者ID:indra012patel,项目名称:gventure_framework,代码行数:6,代码来源:sticker.class.php

示例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();
/* **************************************************************************** */
开发者ID:indra012patel,项目名称:gventure_framework,代码行数:31,代码来源:config.php

示例9: __construct

 public function __construct()
 {
     $this->logger = logger::getRootlogger();
 }
开发者ID:indra012patel,项目名称:gventure_framework,代码行数:4,代码来源:form.class.php


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