Log4j 2 Properties Configuration with Console Appender The Java code example below to show you how to configure Log4j 2 with Properties configuration file to log messages to sytem console using Console appender.