Class Log

Description

日志处理类

支持下面的日志类型 WEB_LOG_DEBUG 调试信息 WEB_LOG_ERROR 错误信息 SQL_LOG_DEBUG SQL调试 分别对象的默认日志文件为 调试日志文件 systemOut.log 错误日志文件 systemErr.log SQL日志文件 systemSql.log

Located in /Think/Util/Log.class.php (line 32)

Base
   |
   --Log
Variable Summary
static mixed $log
Method Summary
static void record (string $message, [string $type = WEB_LOG_ERROR])
static void save (string $message, string $type, string $file)
static void write (string $message, [string $type = WEB_LOG_ERROR], [string $file = ''])
Variables
static mixed $log = array() (line 35)
Methods
static record (line 50)

记录日志

  • throws: ThinkExecption
  • access: public
static void record (string $message, [string $type = WEB_LOG_ERROR])
  • string $message: 日志信息
  • string $type: 日志类型
static save (line 69)

日志保存

  • throws: ThinkExecption
  • access: public
static void save (string $message, string $type, string $file)
  • string $message: 日志信息
  • string $type: 日志类型
  • string $file: 写入文件 默认取定义日志文件
static write (line 105)

日志直接写入

  • throws: ThinkExecption
  • access: public
static void write (string $message, [string $type = WEB_LOG_ERROR], [string $file = ''])
  • string $message: 日志信息
  • string $type: 日志类型
  • string $file: 写入文件 默认取定义日志文件

Documentation generated on Thu, 27 Mar 2008 08:20:47 +0000 by 塞北的雪