Class JansiConsoleAppender<E>

    • Method Detail

      • wrapTarget

        protected OutputStream wrapTarget​(OutputStream targetStream)
        Installs Jansi and returns AnsiConsole.out() or AnsiConsole.err() according to the configured target.

        Does not use the deprecated withJansi / wrapWithJansi path. AnsiConsole.systemInstall() is invoked at most once per install ownership of this instance.

        If JLINE_JANSI_ANSI_CONSOLE_CLASS_NAME is not loadable, a warning is emitted and targetStream is returned unchanged.

        Overrides:
        wrapTarget in class ConsoleAppender<E>
        Parameters:
        targetStream - the raw stream for ConsoleAppender.target
        Returns:
        the stream to use as this appender's output stream