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 __call( string $name, array $arguments ): mixed
$name string
$arguments array

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

            
__construct() public method

public __construct( \Psr\Log\LoggerInterface $decorated, Yiisoft\Yii\Debug\Collector\LogCollector $collector ): mixed
$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 __get( string $name ): mixed
$name string

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

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

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

            
alert() public method

public alert( string|\Stringable $message, array $context = [] ): void
$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 critical( string|\Stringable $message, array $context = [] ): void
$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 debug( string|\Stringable $message, array $context = [] ): void
$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 emergency( string|\Stringable $message, array $context = [] ): void
$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 error( string|\Stringable $message, array $context = [] ): void
$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 info( string|\Stringable $message, array $context = [] ): void
$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 log( mixed $level, string|\Stringable $message, array $context = [] ): void
$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 notice( string|\Stringable $message, array $context = [] ): void
$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 warning( string|\Stringable $message, array $context = [] ): void
$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);
}