Browse Source

mxg:修改log.net的配置文件

mengxiangge 5 years ago
parent
commit
792f668fb6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Starter/Starter/Logger/log4net.config

+ 2 - 2
Starter/Starter/Logger/log4net.config

@@ -19,7 +19,7 @@
       <!--日志根据日期滚动-->
       <param name= "RollingStyle" value= "Date"/>
       <layout type="log4net.Layout.PatternLayout">
-        <param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n %loggername" />
+        <param name="ConversionPattern" value="%d [%t] %-5p %c - %m %logger %n" />
       </layout>
     </appender>
 
@@ -35,7 +35,7 @@
         <foreColor value="Green" />
       </mapping>
       <layout type="log4net.Layout.PatternLayout">
-        <conversionPattern value="%n%date{HH:mm:ss,fff} [%-5level] %m" />
+        <conversionPattern value="%date{HH:mm:ss,fff} [%-5level] %m %n" />
       </layout>
 
       <filter type="log4net.Filter.LevelRangeFilter">