系统日志

系统日志形式日志类
属性
命名空间 fize\log\handler
类名 SysLog
实现接口 fize\log\LogHandler
方法:
方法名 说明
__construct() 构造函数
__destruct() 析构函数
write() 写入日志

方法

__construct()

构造函数

public function __construct (
    array $config = []
)
参数:
名称 说明
config 支持参数

__destruct()

析构函数

public function __destruct ()
关闭日志连接

write()

写入日志

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