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="DatePattern" value="'.'yyyy-MM-dd" />
|
||||
<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>
|
||||
</appender>
|
||||
|
||||
<appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
|
||||
<param name="Target" value="System.out"/>
|
||||
<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>
|
||||
</appender>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user