Properties

$realClassNames

$realClassNames : array

真实类名集合

Type

array

$coreHandlers

$coreHandlers : array

核心处理器

Type

array

$exHandlers

$exHandlers : array

扩展处理器

Type

array

$handlers

$handlers : array<mixed,\Imi\Log\Handler\Base>

处理器对象数组

Type

array<mixed,\Imi\Log\Handler\Base>

$records

$records : array<mixed,\Imi\Log\Record>

日志记录

Type

array<mixed,\Imi\Log\Record>

Methods

__init()

__init() 

log()

log(mixed  $level, string  $message, array  $context = array()) : void

Logs with an arbitrary level.

Parameters

mixed $level
string $message
array $context

save()

save() : void

强制保存所有日志

getErrorFile()

getErrorFile(  $backtrace) : array

获取错误文件位置

Parameters

$backtrace

Returns

array

addExHandler()

addExHandler(array  $exHandler) : void

增加扩展处理器

Parameters

array $exHandler

__getRealClassName()

__getRealClassName() : string

获取当前Bean类真实类名

Returns

string

getTrace()

getTrace(  $backtrace) : array

获取代码调用跟踪

Parameters

$backtrace

Returns

array

parseContext()

parseContext(array  $context) : array

处理context

Parameters

array $context

Returns

array