You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
496 B
30 lines
496 B
9 months ago
|
<?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 array $context
|
||
|
*
|
||
|
* @return void
|
||
|
*
|
||
|
* @throws \Psr\Log\InvalidArgumentException
|
||
|
*/
|
||
|
public function log($level, $message, array $context = array())
|
||
|
{
|
||
|
\think\Log::write($message);
|
||
|
}
|
||
|
}
|