public ConsoleAppender<ILoggingEvent> newConsoleAppender(Context loggerContext, String name, String logPattern) {
    PatternLayoutEncoder consoleEncoder = new PatternLayoutEncoder();
    consoleEncoder.setContext(loggerContext);
    consoleEncoder.setPattern(logPattern);
    consoleEncoder.start();
    ConsoleAppender<ILoggingEvent> consoleAppender = new ConsoleAppender<>();
    consoleAppender.setContext(loggerContext);
    consoleAppender.setEncoder(consoleEncoder);
    consoleAppender.setName(name);
    consoleAppender.setTarget("System.out");
    consoleAppender.start();
    return consoleAppender;
  }
public ConsoleAppender < ILoggingEvent > newConsoleAppender ( Context loggerContext , String name , String logPattern ) { PatternLayoutEncoder consoleEncoder = new PatternLayoutEncoder ( ) ; consoleEncoder . setContext ( loggerContext ) ; consoleEncoder . setPattern ( logPattern ) ; consoleEncoder . start ( ) ; ConsoleAppender < ILoggingEvent > consoleAppender = new ConsoleAppender < > ( ) ; consoleAppender . setContext ( loggerContext ) ; consoleAppender . setEncoder ( consoleEncoder ) ; consoleAppender . setName ( name ) ; consoleAppender . setTarget ( "System.out" ) ; consoleAppender . start ( ) ; return consoleAppender ; }
Creates a new {@link ConsoleAppender} to {@code System.out} with the specified name and log pattern.

@see #buildLogPattern(RootLoggerConfig)