Log4j2 ConsoleAppender Example
Log4j2 ConsoleAppender appends the log events generated by the application into the System.out or System.err. The default target is System.err. The console appender uses the log message pattern specified by the user in configuration using PatternLayout property. 1. Log4j2 ConsoleAppender Configuration Use and customize the below-given configuration snippets for configuring the console appender. Notice the …