Explorar o código

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

mengxiangge %!s(int64=5) %!d(string=hai) anos
pai
achega
792f668fb6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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">