prefix = $prefix; $this->wrappedLogger = $logger; } public function log($level, $message, array $context = []) { $this->wrappedLogger->log($level, $this->prefix . $message, $context); } }