pCampBot.exe.config 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration>
  3. <configSections>
  4. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
  5. </configSections>
  6. <runtime>
  7. <loadFromRemoteSources enabled="true" />
  8. </runtime>
  9. <appSettings>
  10. </appSettings>
  11. <log4net>
  12. <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console">
  13. <filter type="log4net.Filter.LoggerMatchFilter">
  14. <loggerToMatch value="special"/>
  15. <acceptOnMatch value="false"/>
  16. </filter>
  17. <layout type="log4net.Layout.PatternLayout">
  18. <conversionPattern value="%date{HH:mm:ss.fff} - %message" />
  19. </layout>
  20. </appender>
  21. <appender name="LogFileAppender" type="log4net.Appender.FileAppender">
  22. <file value="pCampBot.log" />
  23. <appendToFile value="true" />
  24. <filter type="log4net.Filter.LoggerMatchFilter">
  25. <loggerToMatch value="special"/>
  26. <acceptOnMatch value="false"/>
  27. </filter>
  28. <layout type="log4net.Layout.PatternLayout">
  29. <conversionPattern value="%date %-5level - %logger %message%newline" />
  30. </layout>
  31. </appender>
  32. <appender name="StatsLogFileAppender" type="log4net.Appender.FileAppender">
  33. <file value="pCampBotStats.log"/>
  34. <appendToFile value="true" />
  35. <layout type="log4net.Layout.PatternLayout">
  36. <conversionPattern value="%date - %message%newline" />
  37. </layout>
  38. </appender>
  39. <root>
  40. <level value="DEBUG" />
  41. <appender-ref ref="Console" />
  42. <appender-ref ref="LogFileAppender" />
  43. </root>
  44. <!-- used for stats recording -->
  45. <logger name="special.StatsLogger">
  46. <appender-ref ref="StatsLogFileAppender"/>
  47. </logger>
  48. </log4net>
  49. </configuration>