OpenSim.exe.config 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. <!-- console log with milliseconds. Useful for debugging -->
  22. <!-- <conversionPattern value="%date{HH:mm:ss.fff} - %message" /> -->
  23. </layout>
  24. </appender>
  25. <!-- If you want automatic log-rolling then use RollingFileAppender instead of FileAppender:
  26. <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender">
  27. <file value="log/OpenSim.log" />
  28. <rollingStyle value="Date" />
  29. <datePattern value="'.'yyyy-MM-dd"/>
  30. ...
  31. -->
  32. <appender name="LogFileAppender" type="log4net.Appender.FileAppender">
  33. <file value="OpenSim.log" />
  34. <appendToFile value="true" />
  35. <filter type="log4net.Filter.LoggerMatchFilter">
  36. <loggerToMatch value="special"/>
  37. <acceptOnMatch value="false"/>
  38. </filter>
  39. <layout type="log4net.Layout.PatternLayout">
  40. <!-- <conversionPattern value="%date %-5level (%thread) - %logger %message%newline" /> -->
  41. <conversionPattern value="%date %-5level %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 per region module loading -->
  57. <logger name="OpenSim.ApplicationPlugins.RegionModulesController.RegionModulesControllerPlugin">
  58. <level value="INFO"/>
  59. </logger>
  60. <!-- used for stats recording -->
  61. <logger name="special.StatsLogger">
  62. <appender-ref ref="StatsLogFileAppender"/>
  63. </logger>
  64. </log4net>
  65. </configuration>