diff options
author | David Walter Seikel | 2016-11-27 23:46:20 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-11-27 23:46:20 +1000 |
commit | 340230a3a09518f8ef15f92732d4bd0bad7a2a34 (patch) | |
tree | 507462cbc7040059c5e3b7eaf02150c5d27b4a82 | |
parent | Don't throw exceptions on threat level checks and a few other script function... (diff) | |
download | opensim-SC-340230a3a09518f8ef15f92732d4bd0bad7a2a34.zip opensim-SC-340230a3a09518f8ef15f92732d4bd0bad7a2a34.tar.gz opensim-SC-340230a3a09518f8ef15f92732d4bd0bad7a2a34.tar.bz2 opensim-SC-340230a3a09518f8ef15f92732d4bd0bad7a2a34.tar.xz |
Rejig the logging so that -
INFO on the console, DEBUG in the log files.
Greater time resolution in the log files.
Trying out the built in log roller.
Diffstat (limited to '')
-rw-r--r--[-rwxr-xr-x] | bin/OpenSim.exe.config | 13 | ||||
-rw-r--r-- | bin/Robust.exe.config | 11 |
2 files changed, 6 insertions, 18 deletions
diff --git a/bin/OpenSim.exe.config b/bin/OpenSim.exe.config index 24c18b3..e3ee927 100755..100644 --- a/bin/OpenSim.exe.config +++ b/bin/OpenSim.exe.config | |||
@@ -12,34 +12,28 @@ | |||
12 | </appSettings> | 12 | </appSettings> |
13 | <log4net> | 13 | <log4net> |
14 | <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console"> | 14 | <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console"> |
15 | <threshold value="INFO" /> | ||
15 | <filter type="log4net.Filter.LoggerMatchFilter"> | 16 | <filter type="log4net.Filter.LoggerMatchFilter"> |
16 | <loggerToMatch value="special"/> | 17 | <loggerToMatch value="special"/> |
17 | <acceptOnMatch value="false"/> | 18 | <acceptOnMatch value="false"/> |
18 | </filter> | 19 | </filter> |
19 | <layout type="log4net.Layout.PatternLayout"> | 20 | <layout type="log4net.Layout.PatternLayout"> |
20 | <conversionPattern value="%date{HH:mm:ss} - %message" /> | 21 | <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> | 22 | </layout> |
24 | </appender> | 23 | </appender> |
25 | 24 | ||
26 | <!-- If you want automatic log-rolling then use RollingFileAppender instead of FileAppender: | ||
27 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> | 25 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> |
26 | <threshold value="DEBUG" /> | ||
28 | <file value="../logs/OpenSim.log" /> | 27 | <file value="../logs/OpenSim.log" /> |
29 | <rollingStyle value="Date" /> | 28 | <rollingStyle value="Date" /> |
30 | <datePattern value="'.'yyyy-MM-dd"/> | 29 | <datePattern value="'.'yyyy-MM-dd"/> |
31 | ... | ||
32 | --> | ||
33 | |||
34 | <appender name="LogFileAppender" type="log4net.Appender.FileAppender"> | ||
35 | <file value="../logs/OpenSim.log" /> | ||
36 | <appendToFile value="true" /> | 30 | <appendToFile value="true" /> |
37 | <filter type="log4net.Filter.LoggerMatchFilter"> | 31 | <filter type="log4net.Filter.LoggerMatchFilter"> |
38 | <loggerToMatch value="special"/> | 32 | <loggerToMatch value="special"/> |
39 | <acceptOnMatch value="false"/> | 33 | <acceptOnMatch value="false"/> |
40 | </filter> | 34 | </filter> |
41 | <layout type="log4net.Layout.PatternLayout"> | 35 | <layout type="log4net.Layout.PatternLayout"> |
42 | <conversionPattern value="%date %-5level (%thread) - %logger %message%newline" /> | 36 | <conversionPattern value="%date{yyyy-MM-dd HH:mm:ss.fff} %-5level (%thread) - %logger %message%newline" /> |
43 | </layout> | 37 | </layout> |
44 | </appender> | 38 | </appender> |
45 | 39 | ||
@@ -52,7 +46,6 @@ | |||
52 | </appender> | 46 | </appender> |
53 | 47 | ||
54 | <root> | 48 | <root> |
55 | <level value="INFO" /> | ||
56 | <appender-ref ref="Console" /> | 49 | <appender-ref ref="Console" /> |
57 | <appender-ref ref="LogFileAppender" /> | 50 | <appender-ref ref="LogFileAppender" /> |
58 | </root> | 51 | </root> |
diff --git a/bin/Robust.exe.config b/bin/Robust.exe.config index 195a1b9..140bf3a 100644 --- a/bin/Robust.exe.config +++ b/bin/Robust.exe.config | |||
@@ -12,6 +12,7 @@ | |||
12 | </appSettings> | 12 | </appSettings> |
13 | <log4net> | 13 | <log4net> |
14 | <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console"> | 14 | <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console"> |
15 | <threshold value="INFO" /> | ||
15 | <filter type="log4net.Filter.LoggerMatchFilter"> | 16 | <filter type="log4net.Filter.LoggerMatchFilter"> |
16 | <loggerToMatch value="special"/> | 17 | <loggerToMatch value="special"/> |
17 | <acceptOnMatch value="false"/> | 18 | <acceptOnMatch value="false"/> |
@@ -21,23 +22,18 @@ | |||
21 | </layout> | 22 | </layout> |
22 | </appender> | 23 | </appender> |
23 | 24 | ||
24 | <!-- If you want automatic log-rolling then use RollingFileAppender instead of FileAppender: | ||
25 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> | 25 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> |
26 | <threshold value="DEBUG" /> | ||
26 | <file value="../logs/Robust.log" /> | 27 | <file value="../logs/Robust.log" /> |
27 | <rollingStyle value="Date" /> | 28 | <rollingStyle value="Date" /> |
28 | <datePattern value="'.'yyyy-MM-dd"/> | 29 | <datePattern value="'.'yyyy-MM-dd"/> |
29 | ... | ||
30 | --> | ||
31 | |||
32 | <appender name="LogFileAppender" type="log4net.Appender.FileAppender"> | ||
33 | <file value="../logs/Robust.log" /> | ||
34 | <appendToFile value="true" /> | 30 | <appendToFile value="true" /> |
35 | <filter type="log4net.Filter.LoggerMatchFilter"> | 31 | <filter type="log4net.Filter.LoggerMatchFilter"> |
36 | <loggerToMatch value="special"/> | 32 | <loggerToMatch value="special"/> |
37 | <acceptOnMatch value="false"/> | 33 | <acceptOnMatch value="false"/> |
38 | </filter> | 34 | </filter> |
39 | <layout type="log4net.Layout.PatternLayout"> | 35 | <layout type="log4net.Layout.PatternLayout"> |
40 | <conversionPattern value="%date %-5level (%thread) - %logger %message%newline" /> | 36 | <conversionPattern value="%date{yyyy-MM-dd HH:mm:ss.fff} %-5level (%thread) - %logger %message%newline" /> |
41 | </layout> | 37 | </layout> |
42 | </appender> | 38 | </appender> |
43 | 39 | ||
@@ -50,7 +46,6 @@ | |||
50 | </appender> | 46 | </appender> |
51 | 47 | ||
52 | <root> | 48 | <root> |
53 | <level value="INFO" /> | ||
54 | <appender-ref ref="Console" /> | 49 | <appender-ref ref="Console" /> |
55 | <appender-ref ref="LogFileAppender" /> | 50 | <appender-ref ref="LogFileAppender" /> |
56 | </root> | 51 | </root> |