OpenSim32.exe.config 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration>
  3. <configSections>
  4. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
  5. </configSections>
  6. <startup>
  7. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  8. </startup>
  9. <runtime>
  10. <loadFromRemoteSources enabled="true" />
  11. </runtime>
  12. <appSettings>
  13. </appSettings>
  14. <log4net>
  15. <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console">
  16. <filter type="log4net.Filter.LoggerMatchFilter">
  17. <loggerToMatch value="special"/>
  18. <acceptOnMatch value="false"/>
  19. </filter>
  20. <layout type="log4net.Layout.PatternLayout">
  21. <conversionPattern value="%date{HH:mm:ss} - %message" />
  22. <!-- console log with milliseconds. Useful for debugging -->
  23. <!-- <conversionPattern value="%date{HH:mm:ss.fff} - %message" /> -->
  24. </layout>
  25. </appender>
  26. <!-- If you want automatic log-rolling then use RollingFileAppender instead of FileAppender:
  27. <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender">
  28. <file value="log/OpenSim.log" />
  29. <rollingStyle value="Date" />
  30. <datePattern value="'.'yyyy-MM-dd"/>
  31. ...
  32. -->
  33. <appender name="LogFileAppender" type="log4net.Appender.FileAppender">
  34. <file value="OpenSim.log" />
  35. <appendToFile value="true" />
  36. <filter type="log4net.Filter.LoggerMatchFilter">
  37. <loggerToMatch value="special"/>
  38. <acceptOnMatch value="false"/>
  39. </filter>
  40. <layout type="log4net.Layout.PatternLayout">
  41. <conversionPattern value="%date %-5level - %logger %message%newline" />
  42. </layout>
  43. </appender>
  44. <appender name="StatsLogFileAppender" type="log4net.Appender.FileAppender">
  45. <file value="OpenSimStats.log"/>
  46. <appendToFile value="true" />
  47. <layout type="log4net.Layout.PatternLayout">
  48. <conversionPattern value="%date - %message%newline" />
  49. </layout>
  50. </appender>
  51. <root>
  52. <level value="DEBUG" />
  53. <appender-ref ref="Console" />
  54. <appender-ref ref="LogFileAppender" />
  55. </root>
  56. <!-- Independently control logging level for XEngine -->
  57. <logger name="OpenSim.Region.ScriptEngine.XEngine">
  58. <level value="INFO"/>
  59. </logger>
  60. <!-- Independently control logging level for per region module loading -->
  61. <logger name="OpenSim.ApplicationPlugins.RegionModulesController.RegionModulesControllerPlugin">
  62. <level value="INFO"/>
  63. </logger>
  64. <!-- used for stats recording -->
  65. <logger name="special.StatsLogger">
  66. <appender-ref ref="StatsLogFileAppender"/>
  67. </logger>
  68. </log4net>
  69. </configuration>