zhaojs
2023-08-08 754e426cf37961192e7a6189a81acb9b3410e376
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
 
namespace app\common\library;
 
use Psr\Log\AbstractLogger;
use think\Hook;
 
/**
 * 日志记录类
 */
class Log extends AbstractLogger
{
 
    /**
     * Logs with an arbitrary level.
     *
     * @param mixed   $level
     * @param string  $message
     * @param mixed[] $context
     *
     * @return void
     *
     * @throws \Psr\Log\InvalidArgumentException
     */
    public function log($level, $message, array $context = array())
    {
        \think\Log::write($message);
    }
}