vendor/codeages/biz-framework/src/Targetlog/Targetlogger.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Codeages\Biz\Framework\Targetlog;
use Psr\Log\LoggerInterface;
use Codeages\Biz\Framework\Targetlog\Service\TargetlogService;
class Targetlogger implements LoggerInterface
{
protected $biz;
protected $targetType;
protected $targetId;
public function __construct($biz, $targetType, $targetId)
{
$this->biz = $biz;
$this->targetType = $targetType;
$this->targetId = $targetId;
}
public function emergency($message, array $context = array())
{
return $this->log(TargetlogService::EMERGENCY, $message, $context);
}
public function alert($message, array $context = array())
{
return $this->log(TargetlogService::ALERT, $message, $context);
}
public function critical($message, array $context = array())
{
return $this->log(TargetlogService::CRITICAL, $message, $context);
}
public function error($message, array $context = array())
{
return $this->log(TargetlogService::ERROR, $message, $context);
}
public function warning($message, array $context = array())
{
return $this->log(TargetlogService::WARNING, $message, $context);
}
public function notice($message, array $context = array())
{
return $this->log(TargetlogService::NOTICE, $message, $context);
}
public function info($message, array $context = array())
{
return $this->log(TargetlogService::INFO, $message, $context);
}
public function debug($message, array $context = array())
{
return $this->log(TargetlogService::DEBUG, $message, $context);
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。