Eva\EvaEngine\CLI\Output\ConsoleOutput::writelnError PHP Метод

writelnError() публичный Метод

public writelnError ( $message, $type = self::OUTPUT_NORMAL )
    public function writelnError($message, $type = self::OUTPUT_NORMAL)
    {
        $this->writeln("<error>{$message} </error>", $type);
    }

Usage Example

Пример #1
0
 public static function exceptionHandler(\Exception $e)
 {
     $output = new ConsoleOutput();
     $output->writelnError($e->getMessage());
     $output->writelnComment($e->getTraceAsString());
 }