%n 换行 log4j.appender.A1.layout.ConversionPattern = %d{yyyy-MM-dd hh:mm:ss} [%c]-[%p] %m %l %n 调用方式: static Logger log = Logger.getLogger(Main.class); &#9; &#9; public void print(){ &#9;&#9; log.debug(...<br>%n 换行 log4j.appender.A1.layout.ConversionPattern = %d{yyyy-MM-dd hh:mm:ss} [%c]-[%p] %m %l %n 调用方式: static Logger log = Logger.getLogger(Main.class); &#9; &#9; public void print(){ &#9;&#9; log.debug(...