公司框架写的,日志格式是log4j 执行方式是 DailyRollingFileAppender ,如何让他马上执行,总是内容为空,怎么回事呢
class="org.apache.log4j.DailyRollingFileAppender">
<!-- Rollover at midnight each day -->
<param name="DatePattern" value="'.'yyyy-MM-dd-HH-mm" />
<!-- Rollover at the top of each hour
<param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
-->
<layout class="org.apache.log4j.PatternLayout">
<!-- The default pattern: Date Priority [Category] Message\n -->
<param name="ConversionPattern" value="%d %-5p [%c] %m%n" />
<!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
<param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
-->
</layout>
</appender>