0 follower

Final Class Yiisoft\Yii\Debug\Collector\LoggerInterfaceProxy

InheritanceYiisoft\Yii\Debug\Collector\LoggerInterfaceProxy
ImplementsPsr\Log\LoggerInterface
Uses TraitsYiisoft\Yii\Debug\ProxyDecoratedCalls

Method Details

Hide inherited methods

__call() public method
public mixed __call ( string $name, array $arguments )
$name string
$arguments array

                public function __call(string $name, array $arguments)
{
    /**
     * @psalm-suppress MixedMethodCall
     */
    return $this->decorated->$name(...$arguments);
}

            
__construct() public method

public mixed __construct ( \Psr\Log\LoggerInterface $decorated, Yiisoft\Yii\Debug\Collector\LogCollector $collector )
$decorated \Psr\Log\LoggerInterface
$collector Yiisoft\Yii\Debug\Collector\LogCollector

                public function __construct(
    private readonly LoggerInterface $decorated,
    private readonly LogCollector $collector
) {
}

            
__get() public method
public mixed __get ( string $name )
$name string

                public function __get(string $name)
{
    return $this->decorated->$name;
}

            
__set() public method
public void __set ( string $name, mixed $value )
$name string
$value mixed

                public function __set(string $name, mixed $value): void
{
    $this->decorated->$name = $value;
}

            
alert() public method

public void alert ( string|\Stringable $message, array $context = [] )
$message string|\Stringable
$context array

                public function alert(string|Stringable $message, array $context = []): void
{
    $callStack = $this->getCallStack();
    $this->collector->collect(LogLevel::ALERT, $message, $context, $callStack['file'] . ':' . $callStack['line']);
    $this->decorated->alert($message, $context);
}

            
critical() public method

public void critical ( string|\Stringable $message, array $context = [] )
$message string|\Stringable
$context array

                public function critical(string|Stringable $message, array $context = []): void
{
    $callStack = $this->getCallStack();
    $this->collector->collect(
        LogLevel::CRITICAL,
        $message,
        $context,
        $callStack['file'] . ':' . $callStack['line']
    );
    $this->decorated->critical($message, $context);
}

            
debug() public method

public void debug ( string|\Stringable $message, array $context = [] )
$message string|\Stringable
$context array

                public function debug(string|Stringable $message, array $context = []): void
{
    $callStack = $this->getCallStack();
    $this->collector->collect(LogLevel::DEBUG, $message, $context, $callStack['file'] . ':' . $callStack['line']);
    $this->decorated->debug($message, $context);
}

            
emergency() public method

public void emergency ( string|\Stringable $message, array $context = [] )
$message string|\Stringable
$context array

                public function emergency(string|Stringable $message, array $context = []): void
{
    $callStack = $this->getCallStack();
    $this->collector->collect(
        LogLevel::EMERGENCY,
        $message,
        $context,
        $callStack['file'] . ':' . $callStack['line']
    );
    $this->decorated->emergency($message, $context);
}

            
error() public method

public void error ( string|\Stringable $message, array $context = [] )
$message string|\Stringable
$context array

                public function error(string|Stringable $message, array $context = []): void
{
    $callStack = $this->getCallStack();
    $this->collector->collect(LogLevel::ERROR, $message, $context, $callStack['file'] . ':' . $callStack['line']);
    $this->decorated->error($message, $context);
}

            
info() public method

public void info ( string|\Stringable $message, array $context = [] )
$message string|\Stringable
$context array

                public function info(string|Stringable $message, array $context = []): void
{
    $callStack = $this->getCallStack();
    $this->collector->collect(LogLevel::INFO, $message, $context, $callStack['file'] . ':' . $callStack['line']);
    $this->decorated->info($message, $context);
}

            
log() public method

public void log ( mixed $level, string|\Stringable $message, array $context = [] )
$level mixed
$message string|\Stringable
$context array

                public function log(mixed $level, string|Stringable $message, array $context = []): void
{
    $level = (string) $level;
    $callStack = $this->getCallStack();
    $this->collector->collect($level, $message, $context, $callStack['file'] . ':' . $callStack['line']);
    $this->decorated->log($level, $message, $context);
}

            
notice() public method

public void notice ( string|\Stringable $message, array $context = [] )
$message string|\Stringable
$context array

                public function notice(string|Stringable $message, array $context = []): void
{
    $callStack = $this->getCallStack();
    $this->collector->collect(LogLevel::NOTICE, $message, $context, $callStack['file'] . ':' . $callStack['line']);
    $this->decorated->notice($message, $context);
}

            
warning() public method

public void warning ( string|\Stringable $message, array $context = [] )
$message string|\Stringable
$context array

                public function warning(string|Stringable $message, array $context = []): void
{
    $callStack = $this->getCallStack();
    $this->collector->collect(LogLevel::WARNING, $message, $context, $callStack['file'] . ':' . $callStack['line']);
    $this->decorated->warning($message, $context);
}