protected function formatMessage($message, $format = [Console::FG_RED, Console::BOLD])
    {
        $stream = Reaction::isConsoleApp() ? \STDERR : \STDOUT;
        // try controller first to allow check for --color switch
        if (Reaction::isConsoleApp() && Console::streamSupportsAnsiColors($stream)) {
            $message = Console::ansiFormat($message, $format);
        }

        return $message;
    }