1
0

Robust.exe.config 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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} - %message" />
  19. </layout>
  20. </appender>
  21. <!-- If you want automatic log-rolling then use RollingFileAppender instead of FileAppender: -->
  22. <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender">
  23. <file value="log/Robust.log" />
  24. <rollingStyle value="Date" />
  25. <datePattern value="'.'yyyy-MM-dd"/>
  26. <!--
  27. <appender name="LogFileAppender" type="log4net.Appender.FileAppender">
  28. <file value="Robust.log" /> -->
  29. <appendToFile value="true" />
  30. <maximumFileSize value="1000KB" />
  31. <maxSizeRollBackups value="2" />
  32. <filter type="log4net.Filter.LoggerMatchFilter">
  33. <loggerToMatch value="special"/>
  34. <acceptOnMatch value="false"/>
  35. </filter>
  36. <layout type="log4net.Layout.PatternLayout">
  37. <conversionPattern value="%date %-5level (%thread) - %logger %message%newline" />
  38. </layout>
  39. </appender>
  40. <appender name="StatsLogFileAppender" type="log4net.Appender.FileAppender">
  41. <file value="RobustStats.log"/>
  42. <appendToFile value="true" />
  43. <layout type="log4net.Layout.PatternLayout">
  44. <conversionPattern value="%date - %message%newline" />
  45. </layout>
  46. </appender>
  47. <root>
  48. <level value="DEBUG" />
  49. <appender-ref ref="Console" />
  50. <appender-ref ref="LogFileAppender" />
  51. </root>
  52. <!-- used for stats recording -->
  53. <logger name="special.StatsLogger">
  54. <appender-ref ref="StatsLogFileAppender"/>
  55. </logger>
  56. </log4net>
  57. </configuration>