OpenSim.exe.config 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. <!-- console log with milliseconds. Useful for debugging -->
  20. <!-- <conversionPattern value="%date{HH:mm:ss.fff} - %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/OpenSim.log" />
  26. <rollingStyle value="Date" />
  27. <datePattern value="'.'yyyy-MM-dd"/>
  28. ...
  29. -->
  30. <appender name="LogFileAppender" type="log4net.Appender.FileAppender">
  31. <file value="OpenSim.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. <conversionPattern value="%date %-5level %message%newline" />
  40. </layout>
  41. </appender>
  42. <appender name="StatsLogFileAppender" type="log4net.Appender.FileAppender">
  43. <file value="OpenSimStats.log"/>
  44. <appendToFile value="true" />
  45. <layout type="log4net.Layout.PatternLayout">
  46. <conversionPattern value="%date - %message%newline" />
  47. </layout>
  48. </appender>
  49. <root>
  50. <level value="DEBUG" />
  51. <appender-ref ref="Console" />
  52. <appender-ref ref="LogFileAppender" />
  53. </root>
  54. <!-- Independently control logging level for per region module loading -->
  55. <logger name="OpenSim.ApplicationPlugins.RegionModulesController.RegionModulesControllerPlugin">
  56. <level value="INFO"/>
  57. </logger>
  58. <!-- used for stats recording -->
  59. <logger name="special.StatsLogger">
  60. <appender-ref ref="StatsLogFileAppender"/>
  61. </logger>
  62. </log4net>
  63. </configuration>