23 private string $prefix;
25 public function __construct(\
Logger $delegate,
string $prefix){
26 $this->delegate = $delegate;
27 $this->prefix = $prefix;
30 public function log($level, $message){
31 $this->delegate->log($level,
"[$this->prefix] $message");
34 public function logException(Throwable $e, $trace =
null){
35 $this->delegate->logException($e, $trace);
49 $this->prefix = $prefix;