1
0

OpenSim.exe.config 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. <gcConcurrent enabled="true" />
  8. <gcServer enabled="true" />
  9. </runtime>
  10. <appSettings>
  11. </appSettings>
  12. <log4net>
  13. <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console">
  14. <filter type="log4net.Filter.LoggerMatchFilter">
  15. <loggerToMatch value="special"/>
  16. <acceptOnMatch value="false"/>
  17. </filter>
  18. <layout type="log4net.Layout.PatternLayout">
  19. <conversionPattern value="%date{HH:mm:ss} - %message" />
  20. <!-- console log with milliseconds. Useful for debugging -->
  21. <!-- <conversionPattern value="%date{HH:mm:ss.fff} - %message" /> -->
  22. </layout>
  23. </appender>
  24. <appender name="LogFileAppender" type="log4net.Appender.FileAppender">
  25. <file value="OpenSim.log" />
  26. <appendToFile value="true" />
  27. <filter type="log4net.Filter.LoggerMatchFilter">
  28. <loggerToMatch value="special"/>
  29. <acceptOnMatch value="false"/>
  30. </filter>
  31. <layout type="log4net.Layout.PatternLayout">
  32. <conversionPattern value="%date %-5level - %logger %message%newline" />
  33. </layout>
  34. </appender>
  35. <appender name="StatsLogFileAppender" type="log4net.Appender.FileAppender">
  36. <file value="OpenSimStats.log"/>
  37. <appendToFile value="true" />
  38. <layout type="log4net.Layout.PatternLayout">
  39. <conversionPattern value="%date - %message%newline" />
  40. </layout>
  41. </appender>
  42. <root>
  43. <level value="DEBUG" />
  44. <appender-ref ref="Console" />
  45. <appender-ref ref="LogFileAppender" />
  46. </root>
  47. <!-- Independently control logging level for XEngine -->
  48. <logger name="OpenSim.Region.ScriptEngine.XEngine">
  49. <level value="INFO"/>
  50. </logger>
  51. <!-- Independently control logging level for per region module loading -->
  52. <logger name="OpenSim.ApplicationPlugins.RegionModulesController.RegionModulesControllerPlugin">
  53. <level value="INFO"/>
  54. </logger>
  55. <!-- used for stats recording -->
  56. <logger name="special.StatsLogger">
  57. <appender-ref ref="StatsLogFileAppender"/>
  58. </logger>
  59. </log4net>
  60. </configuration>