Line 257 in /home4/yeelmx/public_html/beta.anclamar.com.mx/vendor/silverstripe/framework/src/Dev/Tasks/MigrateFileTask.php
248 * https://github.com/silverstripe/silverstripe-framework/issues/5542 249 * @throws \Exception 250 */ 251 protected function addLogHandlers() 252 { 253 // Using a global service here so other systems can control and redirect log output, 254 // for example when this task is run as part of a queuedjob 255 $logger = Injector::inst()->get(LoggerInterface::class)->withName('log'); 256 257 $formatter = new ColoredLineFormatter(); 258 $formatter->ignoreEmptyContextAndExtra(); 259 260 $errorHandler = new StreamHandler('php://stderr', Logger::ERROR); 261 $errorHandler->setFormatter($formatter); 262 263 $standardHandler = new StreamHandler('php://stdout');