@chrispappas there is a way to do that. There are actually two ways to go, both of them are clean.
The first way
Create an abstract class which every other console command you create will extend, and create the following method in it:
protected function configure()
{
$this->output->getFormatter()->setStyle('error', new OutputFormatterStyle('yellow', 'blue'));
}
The second way
Even though I admit it's not overly pretty, I think it's a better way to go.
In project root, find artisan file, and locate the following statement:
$status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput,
new Symfony\Component\Console\Output\ConsoleOutput
);
replace it with
$outputFormatter = new OutputFormatter(false, [
'error' => new OutputFormatterStyle('yellow', 'blue')
]);
$output = new ConsoleOutput(ConsoleOutput::VERBOSITY_NORMAL, null, $outputFormatter);
$status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput,
$output
);
Note the second parameter passed when instantiating OutputFormatter - that way you can modify any coloring you like such as info, comment, question or even create custom ones and use them. For example:
$outputFormatter = new OutputFormatter(false, [
'error' => new OutputFormatterStyle('yellow', 'blue'),
'foo' => new OutputFormatterStyle('magenta', 'yellow'),
]);
and then use it like:
$this->output->writeln('<foo>bar</foo>');
Hope this helps.