1)修正notice 的拼写错误;2)英文的":"后面加了个空格;3)补全Log::send() 注释;4)删除Error.php 里重复的 key;5)添加 File Log 测试用例

This commit is contained in:
jinchun
2016-02-02 20:02:37 +08:00
parent 8ed7c91b29
commit 927c075f29
7 changed files with 49 additions and 18 deletions

View File

@@ -94,7 +94,7 @@ class Socket
];
foreach ($logs as &$log) {
if (in_array($log['type'], ['sql', 'notic', 'debug', 'info'])) {
if (in_array($log['type'], ['sql', 'notice', 'debug', 'info'])) {
$log['type'] = 'log';
}
}

View File

@@ -15,7 +15,7 @@ namespace think\log\driver;
*/
class Trace
{
protected $tabs = ['base' => '基本', 'file' => '文件', 'info' => '流程', 'notic|error' => '错误', 'sql' => 'SQL', 'debug|log' => '调试'];
protected $tabs = ['base' => '基本', 'file' => '文件', 'info' => '流程', 'notice|error' => '错误', 'sql' => 'SQL', 'debug|log' => '调试'];
protected $config = [
'trace_file' => '',
];