模块

abstract Log_Writer

Log writer abstract class. All Log writers must extend this class.

package
BootPHP
category
日志
author
Tinsh
copyright
© 2005-2016 Kilofox Studio

该类在 SYSPATH/classes/log/writer.php 第 12 行声明。

常量

属性

属性

protected array $_log_levels

Numeric log level to string lookup table.

方法

final public __toString( ) (在 Log_Writer 中定义)

Allows the writer to have a unique key when stored.

echo $writer;

返回值

  • string

源代码

final public function __toString()
{
	return spl_object_hash($this);
}

abstract public write( array $messages ) (在 Log_Writer 中定义)

Write an array of messages.

$writer->write($messages);

参数

  • array $messages required - Messages

返回值

  • void

源代码

abstract public function write(array $messages);