12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?xml version="1.0" encoding="utf-8" ?>
- <configuration>
- <configSections>
- <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
- </configSections>
- <runtime>
- <loadFromRemoteSources enabled="true" />
- <gcConcurrent enabled="true" />
- <gcServer enabled="true" />
- </runtime>
- <appSettings>
- </appSettings>
- <log4net>
- <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console">
- <filter type="log4net.Filter.LoggerMatchFilter">
- <loggerToMatch value="special"/>
- <acceptOnMatch value="false"/>
- </filter>
- <layout type="log4net.Layout.PatternLayout">
- <conversionPattern value="%date{HH:mm:ss} - %message" />
- <!-- console log with milliseconds. Useful for debugging -->
- <!-- <conversionPattern value="%date{HH:mm:ss.fff} - %message" /> -->
- </layout>
- </appender>
- <!-- If you want automatic log-rolling then use RollingFileAppender instead of FileAppender:
- <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender">
- <file value="log/OpenSim.log" />
- <rollingStyle value="Date" />
- <datePattern value="'.'yyyy-MM-dd"/>
- ...
- -->
- <appender name="LogFileAppender" type="log4net.Appender.FileAppender">
- <file value="OpenSim.log" />
- <appendToFile value="true" />
- <filter type="log4net.Filter.LoggerMatchFilter">
- <loggerToMatch value="special"/>
- <acceptOnMatch value="false"/>
- </filter>
- <layout type="log4net.Layout.PatternLayout">
- <conversionPattern value="%date %-5level - %logger %message%newline" />
- </layout>
- </appender>
- <appender name="StatsLogFileAppender" type="log4net.Appender.FileAppender">
- <file value="OpenSimStats.log"/>
- <appendToFile value="true" />
- <layout type="log4net.Layout.PatternLayout">
- <conversionPattern value="%date - %message%newline" />
- </layout>
- </appender>
- <root>
- <level value="DEBUG" />
- <appender-ref ref="Console" />
- <appender-ref ref="LogFileAppender" />
- </root>
- <!-- Independently control logging level for XEngine -->
- <logger name="OpenSim.Region.ScriptEngine.XEngine">
- <level value="INFO"/>
- </logger>
- <!-- Independently control logging level for per region module loading -->
- <logger name="OpenSim.ApplicationPlugins.RegionModulesController.RegionModulesControllerPlugin">
- <level value="INFO"/>
- </logger>
- <!-- used for stats recording -->
- <logger name="special.StatsLogger">
- <appender-ref ref="StatsLogFileAppender"/>
- </logger>
- </log4net>
- </configuration>
|