aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/Robust.exe.config
diff options
context:
space:
mode:
Diffstat (limited to 'bin/Robust.exe.config')
-rw-r--r--bin/Robust.exe.config34
1 files changed, 32 insertions, 2 deletions
diff --git a/bin/Robust.exe.config b/bin/Robust.exe.config
index 4914f55..7db6458 100644
--- a/bin/Robust.exe.config
+++ b/bin/Robust.exe.config
@@ -4,6 +4,7 @@
4 <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /> 4 <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
5 </configSections> 5 </configSections>
6 <runtime> 6 <runtime>
7 <loadFromRemoteSources enabled="true" />
7 <gcConcurrent enabled="true" /> 8 <gcConcurrent enabled="true" />
8 <gcServer enabled="true" /> 9 <gcServer enabled="true" />
9 </runtime> 10 </runtime>
@@ -11,16 +12,40 @@
11 </appSettings> 12 </appSettings>
12 <log4net> 13 <log4net>
13 <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console"> 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>
14 <layout type="log4net.Layout.PatternLayout"> 19 <layout type="log4net.Layout.PatternLayout">
15 <conversionPattern value="%date{HH:mm:ss} - %message%newline" /> 20 <conversionPattern value="%date{HH:mm:ss} - %message" />
16 </layout> 21 </layout>
17 </appender> 22 </appender>
18 23
24<!-- If you want automatic log-rolling then use RollingFileAppender instead of FileAppender:
25 <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender">
26 <file value="log/Robust.log" />
27 <rollingStyle value="Date" />
28 <datePattern value="'.'yyyy-MM-dd"/>
29 ...
30-->
31
19 <appender name="LogFileAppender" type="log4net.Appender.FileAppender"> 32 <appender name="LogFileAppender" type="log4net.Appender.FileAppender">
20 <file value="Robust.log" /> 33 <file value="Robust.log" />
21 <appendToFile value="true" /> 34 <appendToFile value="true" />
35 <filter type="log4net.Filter.LoggerMatchFilter">
36 <loggerToMatch value="special"/>
37 <acceptOnMatch value="false"/>
38 </filter>
22 <layout type="log4net.Layout.PatternLayout"> 39 <layout type="log4net.Layout.PatternLayout">
23 <conversionPattern value="%date %-5level - %logger %message%newline" /> 40 <conversionPattern value="%date %-5level (%thread) - %logger %message%newline" />
41 </layout>
42 </appender>
43
44 <appender name="StatsLogFileAppender" type="log4net.Appender.FileAppender">
45 <file value="RobustStats.log"/>
46 <appendToFile value="true" />
47 <layout type="log4net.Layout.PatternLayout">
48 <conversionPattern value="%date - %message%newline" />
24 </layout> 49 </layout>
25 </appender> 50 </appender>
26 51
@@ -29,5 +54,10 @@
29 <appender-ref ref="Console" /> 54 <appender-ref ref="Console" />
30 <appender-ref ref="LogFileAppender" /> 55 <appender-ref ref="LogFileAppender" />
31 </root> 56 </root>
57
58 <!-- used for stats recording -->
59 <logger name="special.StatsLogger">
60 <appender-ref ref="StatsLogFileAppender"/>
61 </logger>
32 </log4net> 62 </log4net>
33</configuration> 63</configuration>