日志驱动调整

This commit is contained in:
thinkphp
2016-02-02 19:04:58 +08:00
parent 3aaa4e8140
commit 8ed7c91b29

View File

@@ -22,10 +22,12 @@ class File
]; ];
// 实例化并传入参数 // 实例化并传入参数
public function __construct(array $config = []) public function __construct($config = [])
{ {
if (is_array($config)) {
$this->config = array_merge($this->config, $config); $this->config = array_merge($this->config, $config);
} }
}
/** /**
* 日志写入接口 * 日志写入接口