一个简单的log4j2.properties
示例,仅供参考
PS已通过Log4j 2.11.2测试
src/resources/log4j2.properties
status = warn
appender.console.type = Console
appender.console.name = LogToConsole
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = [%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n
#appender.file.type = File
#appender.file.name = L