You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

203 lines
6.7 KiB

2 years ago
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration>
  3. <configSections>
  4. <!-- Level 1 -->
  5. <section name="log4net"
  6. type="log4net.Config.Log4NetConfigurationSectionHandler,
  7. log4net"/>
  8. <!-- Level 2 -->
  9. </configSections>
  10. <log4net>
  11. <appender name="EasyBL" type="log4net.Appender.RollingFileAppender">
  12. <file value="logs\EasyBL\" />
  13. <staticLogFileName value="false" />
  14. <datePattern value="yyyyMMdd'.log'" />
  15. <appendToFile value="true" />
  16. <maximumFileSize value="10MB" />
  17. <maxSizeRollBackups value="2" />
  18. <param name="ImmediateFlush" value="true" />
  19. <layout type="log4net.Layout.PatternLayout">
  20. <conversionPattern value="%date %level %thread %logger - %message%newline%newline" />
  21. </layout>
  22. </appender>
  23. <logger name="EasyBL">
  24. <level value="DEBUG" />
  25. <appender-ref ref="EasyBL" />
  26. </logger>
  27. <appender name="EasyBL.WEBAPP" type="log4net.Appender.RollingFileAppender">
  28. <file value="logs\EasyBL.WEBAPP\" />
  29. <staticLogFileName value="false" />
  30. <datePattern value="yyyyMMdd'.log'" />
  31. <appendToFile value="true" />
  32. <maximumFileSize value="10MB" />
  33. <maxSizeRollBackups value="2" />
  34. <param name="ImmediateFlush" value="true" />
  35. <layout type="log4net.Layout.PatternLayout">
  36. <conversionPattern value="%date %level %thread %logger - %message%newline%newline" />
  37. </layout>
  38. </appender>
  39. <logger name="EasyBL.WEBAPP">
  40. <level value="DEBUG" />
  41. <appender-ref ref="EasyBL.WEBAPP" />
  42. </logger>
  43. <appender name="EasyBL.WEBSITE" type="log4net.Appender.RollingFileAppender">
  44. <file value="logs\EasyBL.WEBSITE\" />
  45. <staticLogFileName value="false" />
  46. <datePattern value="yyyyMMdd'.log'" />
  47. <appendToFile value="true" />
  48. <maximumFileSize value="10MB" />
  49. <maxSizeRollBackups value="2" />
  50. <param name="ImmediateFlush" value="true" />
  51. <layout type="log4net.Layout.PatternLayout">
  52. <conversionPattern value="%date %level %thread %logger - %message%newline%newline" />
  53. </layout>
  54. </appender>
  55. <logger name="EasyBL.WEBSITE">
  56. <level value="DEBUG" />
  57. <appender-ref ref="EasyBL.WEBSITE" />
  58. </logger>
  59. <appender name="EasyNet" type="log4net.Appender.RollingFileAppender">
  60. <file value="logs\EasyNet\" />
  61. <staticLogFileName value="false" />
  62. <datePattern value="yyyyMMdd'.log'" />
  63. <appendToFile value="true" />
  64. <maximumFileSize value="10MB" />
  65. <maxSizeRollBackups value="2" />
  66. <param name="ImmediateFlush" value="true" />
  67. <layout type="log4net.Layout.PatternLayout">
  68. <conversionPattern value="%date %level %thread %logger - %message%newline%newline" />
  69. </layout>
  70. </appender>
  71. <logger name="EasyNet">
  72. <level value="DEBUG" />
  73. <appender-ref ref="EasyNet" />
  74. </logger>
  75. <appender name="Entity" type="log4net.Appender.RollingFileAppender">
  76. <file value="logs\Entity\" />
  77. <staticLogFileName value="false" />
  78. <datePattern value="yyyyMMdd'.log'" />
  79. <appendToFile value="true" />
  80. <maximumFileSize value="10MB" />
  81. <maxSizeRollBackups value="2" />
  82. <param name="ImmediateFlush" value="true" />
  83. <layout type="log4net.Layout.PatternLayout">
  84. <conversionPattern value="%date %level %thread %logger - %message%newline%newline" />
  85. </layout>
  86. </appender>
  87. <logger name="Entity">
  88. <level value="DEBUG" />
  89. <appender-ref ref="Entity" />
  90. </logger>
  91. <appender name="EntityBuilder" type="log4net.Appender.RollingFileAppender">
  92. <file value="logs\EntityBuilder\" />
  93. <staticLogFileName value="false" />
  94. <datePattern value="yyyyMMdd'.log'" />
  95. <appendToFile value="true" />
  96. <maximumFileSize value="10MB" />
  97. <maxSizeRollBackups value="2" />
  98. <param name="ImmediateFlush" value="true" />
  99. <layout type="log4net.Layout.PatternLayout">
  100. <conversionPattern value="%date %level %thread %logger - %message%newline%newline" />
  101. </layout>
  102. </appender>
  103. <logger name="EntityBuilder">
  104. <level value="DEBUG" />
  105. <appender-ref ref="EntityBuilder" />
  106. </logger>
  107. <appender name="Euro.Transfer" type="log4net.Appender.RollingFileAppender">
  108. <file value="logs\Euro.Transfer\" />
  109. <staticLogFileName value="false" />
  110. <datePattern value="yyyyMMdd'.log'" />
  111. <appendToFile value="true" />
  112. <maximumFileSize value="10MB" />
  113. <maxSizeRollBackups value="2" />
  114. <param name="ImmediateFlush" value="true" />
  115. <layout type="log4net.Layout.PatternLayout">
  116. <conversionPattern value="%date %level %thread %logger - %message%newline%newline" />
  117. </layout>
  118. </appender>
  119. <logger name="Euro.Transfer">
  120. <level value="DEBUG" />
  121. <appender-ref ref="Euro.Transfer" />
  122. </logger>
  123. <appender name="SqlSugar" type="log4net.Appender.RollingFileAppender">
  124. <file value="logs\SqlSugar\" />
  125. <staticLogFileName value="false" />
  126. <datePattern value="yyyyMMdd'.log'" />
  127. <appendToFile value="true" />
  128. <maximumFileSize value="10MB" />
  129. <maxSizeRollBackups value="2" />
  130. <param name="ImmediateFlush" value="true" />
  131. <layout type="log4net.Layout.PatternLayout">
  132. <conversionPattern value="%date %level %thread %logger - %message%newline%newline" />
  133. </layout>
  134. </appender>
  135. <logger name="SqlSugar">
  136. <level value="DEBUG" />
  137. <appender-ref ref="SqlSugar" />
  138. </logger>
  139. <appender name="WebApp" type="log4net.Appender.RollingFileAppender">
  140. <file value="logs\WebApp\" />
  141. <staticLogFileName value="false" />
  142. <datePattern value="yyyyMMdd'.log'" />
  143. <appendToFile value="true" />
  144. <maximumFileSize value="10MB" />
  145. <maxSizeRollBackups value="2" />
  146. <param name="ImmediateFlush" value="true" />
  147. <layout type="log4net.Layout.PatternLayout">
  148. <conversionPattern value="%date %level %thread %logger - %message%newline%newline" />
  149. </layout>
  150. </appender>
  151. <logger name="WebApp">
  152. <level value="DEBUG" />
  153. <appender-ref ref="WebApp" />
  154. </logger>
  155. <appender name="WebSite" type="log4net.Appender.RollingFileAppender">
  156. <file value="logs\WebSite\" />
  157. <staticLogFileName value="false" />
  158. <datePattern value="yyyyMMdd'.log'" />
  159. <appendToFile value="true" />
  160. <maximumFileSize value="10MB" />
  161. <maxSizeRollBackups value="2" />
  162. <param name="ImmediateFlush" value="true" />
  163. <layout type="log4net.Layout.PatternLayout">
  164. <conversionPattern value="%date %level %thread %logger - %message%newline%newline" />
  165. </layout>
  166. </appender>
  167. <logger name="WebSite">
  168. <level value="DEBUG" />
  169. <appender-ref ref="WebSite" />
  170. </logger>
  171. </log4net>
  172. </configuration>