Final Class Yiisoft\Yii\Debug\Collector\LoggerInterfaceProxy
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Psr\ |
| Uses Traits | Yiisoft\ |
Public Methods
Method Details
Defined in:
Yiisoft\
| 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);
}
| public mixed __construct ( \ | ||
| $decorated | \ |
|
| $collector | Yiisoft\ |
|
public function __construct(
private readonly LoggerInterface $decorated,
private readonly LogCollector $collector,
) {}
Defined in:
Yiisoft\
| public mixed __get ( string $name ) | ||
| $name | string | |
public function __get(string $name)
{
return $this->decorated->$name;
}
Defined in:
Yiisoft\
| public void __set ( string $name, mixed $value ) | ||
| $name | string | |
| $value | mixed | |
public function __set(string $name, mixed $value): void
{
$this->decorated->$name = $value;
}
| public void alert ( string|\ | ||
| $message | string|\ |
|
| $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);
}
| public void critical ( string|\ | ||
| $message | string|\ |
|
| $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);
}
| public void debug ( string|\ | ||
| $message | string|\ |
|
| $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);
}
| public void emergency ( string|\ | ||
| $message | string|\ |
|
| $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);
}
| public void error ( string|\ | ||
| $message | string|\ |
|
| $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);
}
| public void info ( string|\ | ||
| $message | string|\ |
|
| $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);
}
| public void log ( mixed $level, string|\ | ||
| $level | mixed | |
| $message | string|\ |
|
| $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);
}
| public void notice ( string|\ | ||
| $message | string|\ |
|
| $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);
}
| public void warning ( string|\ | ||
| $message | string|\ |
|
| $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);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.