protected function setupLogging() { if ($this->verbosity == 0) { L::setLogger(new NullLogger()); return; } if ($this->log_file) { $logger = new FileLogger(); $logger->setLogFile($this->log_file); } else { $logger = new ConsoleLogger(); } L::setLogger($logger); L::setLevel($this->verbosity); L::setOverrides($this->override_verbosity); }