io = $io; } public function logStandard(string $message): void { $this->log($message, false); } public function logDebug(string $message): void { $this->log($message, true); } private function log(string $message, bool $debug): void { $verbosity = $debug ? IOInterface::VERBOSE : IOInterface::NORMAL; $this->io->writeError('[bamarni-bin] '.$message, true, $verbosity); } }