Robust.exe.config 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. <gcConcurrent enabled="true" />
  9. <gcServer enabled="true" />
  10. </runtime>
  11. <appSettings>
  12. </appSettings>
  13. <log4net>
  14. <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console">
  15. <filter type="log4net.Filter.LoggerMatchFilter">
  16. <loggerToMatch value="special"/>
  17. <acceptOnMatch value="false"/>
  18. </filter>
  19. <layout type="log4net.Layout.PatternLayout">
  20. <conversionPattern value="%date{HH:mm:ss} - %message" />
  21. </layout>
  22. </appender>
  23. <!-- If you want automatic log-rolling then use RollingFileAppender instead of FileAppender:
  24. <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender">
  25. <file value="log/Robust.log" />
  26. <rollingStyle value="Date" />
  27. <datePattern value="'.'yyyy-MM-dd"/>
  28. ...
  29. -->
  30. <appender name="LogFileAppender" type="log4net.Appender.FileAppender">
  31. <file value="Robust.log" />
  32. <appendToFile value="true" />
  33. <filter type="log4net.Filter.LoggerMatchFilter">
  34. <loggerToMatch value="special"/>
  35. <acceptOnMatch value="false"/>
  36. </filter>
  37. <layout type="log4net.Layout.PatternLayout">
  38. <conversionPattern value="%date %-5level (%thread) - %logger %message%newline" />
  39. </layout>
  40. </appender>
  41. <appender name="StatsLogFileAppender" type="log4net.Appender.FileAppender">
  42. <file value="RobustStats.log"/>
  43. <appendToFile value="true" />
  44. <layout type="log4net.Layout.PatternLayout">
  45. <conversionPattern value="%date - %message%newline" />
  46. </layout>
  47. </appender>
  48. <root>
  49. <level value="DEBUG" />
  50. <appender-ref ref="Console" />
  51. <appender-ref ref="LogFileAppender" />
  52. </root>
  53. <!-- used for stats recording -->
  54. <logger name="special.StatsLogger">
  55. <appender-ref ref="StatsLogFileAppender"/>
  56. </logger>
  57. </log4net>
  58. </configuration>