inner = $inner;
$this->consoleOutput = $consoleOutput;
}
#[\Override]
public function emergency($message, array $context = []): void {
$this->consoleOutput->writeln("[emergency] $message");
$this->inner->emergency($message, $context);
}
#[\Override]
public function alert($message, array $context = []): void {
$this->consoleOutput->writeln("[alert] $message");
$this->inner->alert($message, $context);
}
#[\Override]
public function critical($message, array $context = []): void {
$this->consoleOutput->writeln("[critical] $message");
$this->inner->critical($message, $context);
}
#[\Override]
public function error($message, array $context = []): void {
$this->consoleOutput->writeln("[error] $message");
$this->inner->error($message, $context);
}
#[\Override]
public function warning($message, array $context = []): void {
$this->consoleOutput->writeln("[warning] $message");
$this->inner->warning($message, $context);
}
#[\Override]
public function notice($message, array $context = []): void {
$this->consoleOutput->writeln("[notice] $message");
$this->inner->notice($message, $context);
}
#[\Override]
public function info($message, array $context = []): void {
$this->consoleOutput->writeln("[info] $message");
$this->inner->info($message, $context);
}
#[\Override]
public function debug($message, array $context = []): void {
if ($this->consoleOutput->getVerbosity() < OutputInterface::VERBOSITY_DEBUG) {
return;
}
$this->consoleOutput->writeln("[debug] $message");
$this->inner->debug($message, $context);
}
#[\Override]
public function log($level, $message, array $context = []): void {
$this->consoleOutput->writeln("[log] $message");
$this->inner->log($level, $message, $context);
}
}