diff options
Diffstat (limited to '')
-rw-r--r-- | bin/Robust.exe.config | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/bin/Robust.exe.config b/bin/Robust.exe.config new file mode 100644 index 0000000..f5379ff --- /dev/null +++ b/bin/Robust.exe.config | |||
@@ -0,0 +1,57 @@ | |||
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 | |||
12 | <log4net> | ||
13 | <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console"> | ||
14 | <threshold value="INFO" /> | ||
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 | </layout> | ||
22 | </appender> | ||
23 | |||
24 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> | ||
25 | <threshold value="DEBUG" /> | ||
26 | <file value="../../logs/Robust.log" /> | ||
27 | <rollingStyle value="Date" /> | ||
28 | <datePattern value="'.'yyyy-MM-dd"/> | ||
29 | <appendToFile value="true" /> | ||
30 | <filter type="log4net.Filter.LoggerMatchFilter"> | ||
31 | <loggerToMatch value="special"/> | ||
32 | <acceptOnMatch value="false"/> | ||
33 | </filter> | ||
34 | <layout type="log4net.Layout.PatternLayout"> | ||
35 | <conversionPattern value="%date{yyyy-MM-dd HH:mm:ss.fff} %-5level (%thread) - %logger %message%newline" /> | ||
36 | </layout> | ||
37 | </appender> | ||
38 | |||
39 | <appender name="StatsLogFileAppender" type="log4net.Appender.FileAppender"> | ||
40 | <file value="../../logs/RobustStats.log"/> | ||
41 | <appendToFile value="true" /> | ||
42 | <layout type="log4net.Layout.PatternLayout"> | ||
43 | <conversionPattern value="%date - %message%newline" /> | ||
44 | </layout> | ||
45 | </appender> | ||
46 | |||
47 | <root> | ||
48 | <appender-ref ref="Console" /> | ||
49 | <appender-ref ref="LogFileAppender" /> | ||
50 | </root> | ||
51 | |||
52 | <!-- used for stats recording --> | ||
53 | <logger name="special.StatsLogger"> | ||
54 | <appender-ref ref="StatsLogFileAppender"/> | ||
55 | </logger> | ||
56 | </log4net> | ||
57 | </configuration> | ||