日志接口

属性
命名空间 fize\log
类名 LogHandler
方法:
方法名 说明
__construct() 构造函数
write() 写入日志

方法

__construct()

构造函数

abstract public function __construct (
    array $config = []
)
参数:
名称 说明
config 初始化默认选项

write()

写入日志

abstract public function write (
    string $str,
    string $type = "INF",
    array $config = []
) : bool
参数:
名称 说明
str 要写入的日志主体内容
type 日志类型,
config 传入的其他参数