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


PHP Log::__construct方法代码示例

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


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

示例1: __construct

 function __construct()
 {
     Log::__construct();
     Log::Location();
     $this->SetServer();
     $this->MemberIsRank();
 }
开发者ID:hanpp1992,项目名称:4yue,代码行数:7,代码来源:Rank.class.php

示例2: __construct

 public function __construct($var)
 {
     gen_time('class/UrlTranslator');
     parent::__construct();
     $this->rules = $var;
     $this->args = self::rest_url_translator();
 }
开发者ID:robertkraig,项目名称:simplecms,代码行数:7,代码来源:class.helper.UrlTranslator.php

示例3: __construct

 public function __construct($error_file_name, $registry)
 {
     parent::__construct($error_file_name);
     $this->registry = $registry;
     $this->config = $registry->get('config');
     $this->session = $registry->get('session');
     unset($this->session->data['warning']);
 }
开发者ID:rubenmachuca,项目名称:openpay-opencart,代码行数:8,代码来源:debuglog.php

示例4: __construct

 /**
  * Class constructor
  *
  * @param string $file
  */
 public function __construct($file)
 {
     if (is_resource($file)) {
         $this->stream = $file;
     } else {
         $this->file = $file;
     }
     parent::__construct();
 }
开发者ID:jasny,项目名称:Q,代码行数:14,代码来源:Text.php

示例5: __construct

	public function __construct($line)
	{
		$matches = array();

		parent::__construct($line);

		if (! $this->extra_data)
		{
			return;
		}

		# Regular Expression Map:
		#  '(31564).(general).(critical): (.*)'
		#  '(live).(31564).(general).(critical): (.*)'
		#  '(live).(r26781.)(31564).(general).(critical): (.*)'
		#  '(live).(r26781.)(19426).(general).(error)( (req:19426:211)): (.*)'
		if (preg_match('!^([a-z-]+\.)?(r\d+\.)?(\d+)\.([a-z_]+)\.([a-z]+)( +\(req:\d+:\d+.*?\))?: *(.*)!i', $this->extra_data, $matches))
		{
			$this->extra_data = null;

			if (strlen($matches[1]))
			{
				$this->ruby_configuration = substr($matches[1], 0, -1);
			}
			if (strlen($matches[2]))
			{
				$this->ruby_revision = substr($matches[2], 1, -1);
			}
			$this->ruby_pid = $matches[3];
			$this->ruby_component = $matches[4];
			$this->ruby_error_level = $matches[5];
			if (strlen($matches[6]))
			{
				$this->ruby_request_identifier = trim($matches[6]);
			}
			$this->ruby_error_message = $matches[7];

			switch ($this->ruby_error_level)
			{
				case 'critical':
				case 'error':
				case 'warning':
				case 'info':
				case 'debug':
				case 'trace':
				case 'spam':
					$this->error_level = $this->ruby_error_level;
					break;
			}
		}
	}
开发者ID:rbroemeling,项目名称:logviewer,代码行数:51,代码来源:RubyLog.class.php

示例6: date

 function __construct($args = NULL)
 {
     parent::__construct($args);
     if (@file_exists($this->getLogPath())) {
         $this->open();
     } else {
         $this->open("OVERRIDE");
         $this->writeToLog("Symphony Log", true);
         $this->writeToLog("Opened: " . date("d.m.Y G:i:s"), true);
         $this->writeToLog("Build: " . $args["symphony"]["build"], true);
         $this->writeToLog("--------------------------------------------", true);
         $this->writeToLog("Environment Variables", true);
         $this->writeToLog("--------------------------------------------", true);
         $constants = @get_defined_constants(true);
         if (!empty($constants) && is_array($constants)) {
             foreach ($constants["user"] as $key => $val) {
                 $this->writeToLog(General::padString($key, 30) . ": \t {$val}", true);
             }
         }
         $this->writeToLog("--------------------------------------------", true);
     }
 }
开发者ID:symphonycms,项目名称:symphony-1.7,代码行数:22,代码来源:class.symphonylog.php

示例7:

 function __construct()
 {
     parent::__construct();
 }
开发者ID:mitramcc,项目名称:start,代码行数:4,代码来源:log_pesquisa.php

示例8: __construct

 public function __construct($logDirectory)
 {
     parent::__construct(self::$CONSTfileName, $logDirectory);
 }
开发者ID:yellowrangler,项目名称:selfemployment,代码行数:4,代码来源:class.AccessLog.php

示例9: __construct

 /**
  * Class constructor
  *
  * @param DB_Table|string $table   DB_Table or table name (string)
  * @param array           $fields  Mapping of keys to field names
  */
 public function __construct($table, $fields)
 {
     $this->table = $table;
     $this->fields = $fields;
     parent::__construct();
 }
开发者ID:jasny,项目名称:Q,代码行数:12,代码来源:DB.php

示例10: __construct

	public function __construct($line)
	{
		$matches = array();

		parent::__construct($line);

		if (! $this->extra_data)
		{
			return;
		}

		# Regular Expression Map:
		#  '((live)) (/prefs.php) ((User Notice)) (.*)'
		#  '(()) (/prefs.php) ((Warning)) (.*)'
		if (preg_match('!^\(([a-z]*)\) (\S+) +\((\w+ ?\w+)\) +(.*)!i', $this->extra_data, $matches))
		{
			$this->extra_data = null;

			if (strlen($matches[1]))
			{
				$this->php_configuration = $matches[1];
			}
			$this->php_script_name = $matches[2];
			$this->php_error_level = $matches[3];
			$this->php_error_message = $matches[4];

			switch ($this->php_error_level)
			{
				case 'Error':
				case 'User Error':
					$this->error_level = 'error';
					break;
				case 'Notice':
				case 'User Notice':
					$this->error_level = 'info';
					break;
				case 'Warning':
				case 'User Warning':
					$this->error_level = 'warning';
					break;
				case 'PHP Strict':
					$this->error_level = 'spam';
					break;
			}
		}
		
		# Regular Expression Map:
		# '(/cache/templates/forums/forumviewthread.parsed.php):(117) (.*)'
		if (preg_match('!^([^:]+):(\d+) +(.*)!', $this->php_error_message, $matches))
		{
			$this->php_script_path = $matches[1];
			$this->php_script_lineno = $matches[2];
			$this->php_error_message = $matches[3];
		}
		
		# Regular Expression Map:
		# '([3296920/)(75.157.111.45]) (.*)'
		# '([anon/)(202.175.26.145]) (.*)'
		if (preg_match('!^(\[[ano0-9-]+/)([0-9.]+\]) +(.*)!', $this->php_error_message, $matches))
		{
			$this->client_uid = $matches[1];
			$this->client_ip = $matches[2];
			$this->php_error_message = $matches[3];
		}
	}
开发者ID:rbroemeling,项目名称:logviewer,代码行数:65,代码来源:PHPLog.class.php

示例11: __construct

 public function __construct()
 {
     gen_time('class/DB');
     $this->makeConnection();
     parent::__construct();
 }
开发者ID:robertkraig,项目名称:simplecms,代码行数:6,代码来源:class.helper.DB.php

示例12: __construct

 public function __construct($program_name = null, $host = null, $port = null)
 {
     parent::__construct();
     if (is_null($program_name)) {
         $program_name = LOG_SYSLOG_PROGRAM;
     }
     if (is_null($host)) {
         $host = LOG_SYSLOG_HOST;
     }
     if (is_null($port)) {
         $port = LOG_SYSLOG_PORT;
     }
     $this->SetProgramName($program_name);
     $this->SetHost($host);
     $this->SetPort($port);
 }
开发者ID:EGroupware,项目名称:z-push,代码行数:16,代码来源:syslog.php

示例13: __construct

 /**
  * Class constructor
  *
  * @param string $to  E-mail recipient
  */
 public function __construct($props = array())
 {
     if (isset($props[0])) {
         $props['to'] = $props[0];
     }
     unset($props[0]);
     parent::__construct($props);
     if (empty($this->headers['From'])) {
         $this->headers['From'] = ini_get('sendmail_from');
     }
     if (empty($this->headers['From'])) {
         $this->headers['From'] = 'system@' . (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : php_uname('n'));
     }
 }
开发者ID:jasny,项目名称:Q,代码行数:19,代码来源:Mail.php


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