Log

日志

package

Tango

author

Zheng Kai zhengkai@gmail.com

Methods

将比较重要的 log 记数据库

collection(string $sType, array $aMessage) : boolean
static
static
access

public

throws

Arguments

$sType

string

日志类型,参见 getType()

$aMessage

array

日志内容

Response

boolean

debug

debug(string $sType, array|string $sMessage, boolean $bHead = FALSE) : boolean
static
static
access

public

Arguments

$sType

string

日志类型,参见 getType()

$sMessage

array|string

日志内容

$bHead

boolean

是否加入统一的头信息

Response

boolean

列举日志类型

getType() : array
static
static
access

public

Response

array

初始化

init() : boolean
static
static
access

public

Response

boolean

Properties

是否允许记录 log(通过配置文件,或者记录超过 1000 次时关闭)

_bEnable : 
static

Type(s)

debug 文件保存路径

_sDebugPath : 
static

Type(s)

日志类型

_lType : 
static

Type(s)

脚本运行 id,id 相同的为同一次脚本执行记录,靠 MySQL 来区分,不会重复

_iAI : 
static

Type(s)

单次脚本中第几次记录 log,超过 1000 次的部分丢弃

_iStep : 
static

Type(s)