Add thread name to log format
This commit is contained in:
parent
fba48cf223
commit
210938644a
@ -6,14 +6,14 @@
|
|||||||
<param name="File" value="log/apiv3.log" />
|
<param name="File" value="log/apiv3.log" />
|
||||||
<param name="DatePattern" value="'.'yyyy-MM-dd" />
|
<param name="DatePattern" value="'.'yyyy-MM-dd" />
|
||||||
<layout class="org.apache.log4j.PatternLayout">
|
<layout class="org.apache.log4j.PatternLayout">
|
||||||
<param name="ConversionPattern" value="[%p %d{yyyy-MM-dd HH:mm:ss}] %m%n"/>
|
<param name="ConversionPattern" value="[%p %d{yyyy-MM-dd HH:mm:ss}] [%t] %m%n"/>
|
||||||
</layout>
|
</layout>
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
|
<appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
|
||||||
<param name="Target" value="System.out"/>
|
<param name="Target" value="System.out"/>
|
||||||
<layout class="org.apache.log4j.PatternLayout">
|
<layout class="org.apache.log4j.PatternLayout">
|
||||||
<param name="ConversionPattern" value="[%p %d{yyyy-MM-dd HH:mm:ss}] %m%n"/>
|
<param name="ConversionPattern" value="[%p %d{yyyy-MM-dd HH:mm:ss}] [%t] %m%n"/>
|
||||||
</layout>
|
</layout>
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user