huwhois 4 years ago
parent
commit
56d23f1224
2 changed files with 30 additions and 5 deletions
  1. 0 5
      .gitignore
  2. 30 0
      thinkphp/library/think/log/driver/Test.php

+ 0 - 5
.gitignore

@ -1,6 +1 @@
1 1
application/database.php
2
test.sql
3
test.php
4
hkdata.php
5
public/test.php
6
hkdata.sql

+ 30 - 0
thinkphp/library/think/log/driver/Test.php

@ -0,0 +1,30 @@
1
<?php
2
// +----------------------------------------------------------------------
3
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4
// +----------------------------------------------------------------------
5
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
6
// +----------------------------------------------------------------------
7
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
8
// +----------------------------------------------------------------------
9
// | Author: liu21st <liu21st@gmail.com>
10
// +----------------------------------------------------------------------
11
12
namespace think\log\driver;
13
14
/**
15
 * 模拟测试输出
16
 */
17
class Test
18
{
19
    /**
20
     * 日志写入接口
21
     * @access public
22
     * @param array $log 日志信息
23
     * @return bool
24
     */
25
    public function save(array $log = [])
26
    {
27
        return true;
28
    }
29
30
}