Robust.exe.config 2.0 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. -->
  28. <appender name="LogFileAppender" type="log4net.Appender.FileAppender">
  29. <file value="Robust.log" />
  30. <appendToFile value="true" />
  31. <filter type="log4net.Filter.LoggerMatchFilter">
  32. <loggerToMatch value="special"/>
  33. <acceptOnMatch value="false"/>
  34. </filter>
  35. <layout type="log4net.Layout.PatternLayout">
  36. <conversionPattern value="%date %-5level (%thread) - %logger %message%newline" />
  37. </layout>
  38. </appender>
  39. <appender name="StatsLogFileAppender" type="log4net.Appender.FileAppender">
  40. <file value="RobustStats.log"/>
  41. <appendToFile value="true" />
  42. <layout type="log4net.Layout.PatternLayout">
  43. <conversionPattern value="%date - %message%newline" />
  44. </layout>
  45. </appender>
  46. <root>
  47. <level value="DEBUG" />
  48. <appender-ref ref="Console" />
  49. <appender-ref ref="LogFileAppender" />
  50. </root>
  51. <!-- used for stats recording -->
  52. <logger name="special.StatsLogger">
  53. <appender-ref ref="StatsLogFileAppender"/>
  54. </logger>
  55. </log4net>
  56. </configuration>