diff options
author | onefang | 2019-05-19 22:25:06 +1000 |
---|---|---|
committer | onefang | 2019-05-19 22:25:06 +1000 |
commit | 66d7ba733f296f81398a040f05dd945c2facb2b4 (patch) | |
tree | d6935a793caa197684bea427bfa5dc45b8fa9173 /bin | |
parent | Update version number stuff, and hack it into the money display. (diff) | |
download | opensim-SC_OLD-66d7ba733f296f81398a040f05dd945c2facb2b4.zip opensim-SC_OLD-66d7ba733f296f81398a040f05dd945c2facb2b4.tar.gz opensim-SC_OLD-66d7ba733f296f81398a040f05dd945c2facb2b4.tar.bz2 opensim-SC_OLD-66d7ba733f296f81398a040f05dd945c2facb2b4.tar.xz |
Various logging fix ups.
Mostly removing console spam.
Default to INFO on the console and DEBUG in the log files.
More time stamp resolution.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/OpenSim.exe.config | 13 | ||||
-rw-r--r-- | bin/Robust.exe.config | 11 |
2 files changed, 5 insertions, 19 deletions
diff --git a/bin/OpenSim.exe.config b/bin/OpenSim.exe.config index 690f808..ed250b3 100644 --- a/bin/OpenSim.exe.config +++ b/bin/OpenSim.exe.config | |||
@@ -11,36 +11,28 @@ | |||
11 | 11 | ||
12 | <log4net> | 12 | <log4net> |
13 | <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console"> | 13 | <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console"> |
14 | <threshold value="INFO" /> | ||
14 | <filter type="log4net.Filter.LoggerMatchFilter"> | 15 | <filter type="log4net.Filter.LoggerMatchFilter"> |
15 | <loggerToMatch value="special"/> | 16 | <loggerToMatch value="special"/> |
16 | <acceptOnMatch value="false"/> | 17 | <acceptOnMatch value="false"/> |
17 | </filter> | 18 | </filter> |
18 | <layout type="log4net.Layout.PatternLayout"> | 19 | <layout type="log4net.Layout.PatternLayout"> |
19 | <conversionPattern value="%date{HH:mm:ss} - %message" /> | 20 | <conversionPattern value="%date{HH:mm:ss} - %message" /> |
20 | <!-- console log with milliseconds. Useful for debugging --> | ||
21 | <!-- <conversionPattern value="%date{HH:mm:ss.fff} - %message" /> --> | ||
22 | </layout> | 21 | </layout> |
23 | </appender> | 22 | </appender> |
24 | 23 | ||
25 | <!-- If you want automatic log-rolling then use RollingFileAppender instead of FileAppender: | ||
26 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> | 24 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> |
27 | <threshold value="DEBUG" /> | 25 | <threshold value="DEBUG" /> |
28 | <file value="../../logs/OpenSim.log" /> | 26 | <file value="../../logs/OpenSim.log" /> |
29 | <rollingStyle value="Date" /> | 27 | <rollingStyle value="Date" /> |
30 | <datePattern value="'.'yyyy-MM-dd"/> | 28 | <datePattern value="'.'yyyy-MM-dd"/> |
31 | ... | ||
32 | --> | ||
33 | |||
34 | <appender name="LogFileAppender" type="log4net.Appender.FileAppender"> | ||
35 | <file value="OpenSim.log" /> | ||
36 | <appendToFile value="true" /> | 29 | <appendToFile value="true" /> |
37 | <filter type="log4net.Filter.LoggerMatchFilter"> | 30 | <filter type="log4net.Filter.LoggerMatchFilter"> |
38 | <loggerToMatch value="special"/> | 31 | <loggerToMatch value="special"/> |
39 | <acceptOnMatch value="false"/> | 32 | <acceptOnMatch value="false"/> |
40 | </filter> | 33 | </filter> |
41 | <layout type="log4net.Layout.PatternLayout"> | 34 | <layout type="log4net.Layout.PatternLayout"> |
42 | <!-- <conversionPattern value="%date %-5level (%thread) - %logger %message%newline" /> --> | 35 | <conversionPattern value="%date{yyyy-MM-dd HH:mm:ss.fff} %-5level (%thread) - %logger %message%newline" /> |
43 | <conversionPattern value="%date %-5level %message%newline" /> | ||
44 | </layout> | 36 | </layout> |
45 | </appender> | 37 | </appender> |
46 | 38 | ||
@@ -53,7 +45,6 @@ | |||
53 | </appender> | 45 | </appender> |
54 | 46 | ||
55 | <root> | 47 | <root> |
56 | <level value="DEBUG" /> | ||
57 | <appender-ref ref="Console" /> | 48 | <appender-ref ref="Console" /> |
58 | <appender-ref ref="LogFileAppender" /> | 49 | <appender-ref ref="LogFileAppender" /> |
59 | </root> | 50 | </root> |
diff --git a/bin/Robust.exe.config b/bin/Robust.exe.config index 03c8f4e..f5379ff 100644 --- a/bin/Robust.exe.config +++ b/bin/Robust.exe.config | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | <log4net> | 12 | <log4net> |
13 | <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console"> | 13 | <appender name="Console" type="OpenSim.Framework.Console.OpenSimAppender, OpenSim.Framework.Console"> |
14 | <threshold value="INFO" /> | ||
14 | <filter type="log4net.Filter.LoggerMatchFilter"> | 15 | <filter type="log4net.Filter.LoggerMatchFilter"> |
15 | <loggerToMatch value="special"/> | 16 | <loggerToMatch value="special"/> |
16 | <acceptOnMatch value="false"/> | 17 | <acceptOnMatch value="false"/> |
@@ -20,23 +21,18 @@ | |||
20 | </layout> | 21 | </layout> |
21 | </appender> | 22 | </appender> |
22 | 23 | ||
23 | <!-- If you want automatic log-rolling then use RollingFileAppender instead of FileAppender: | ||
24 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> | 24 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> |
25 | <threshold value="DEBUG" /> | ||
25 | <file value="../../logs/Robust.log" /> | 26 | <file value="../../logs/Robust.log" /> |
26 | <rollingStyle value="Date" /> | 27 | <rollingStyle value="Date" /> |
27 | <datePattern value="'.'yyyy-MM-dd"/> | 28 | <datePattern value="'.'yyyy-MM-dd"/> |
28 | ... | ||
29 | --> | ||
30 | |||
31 | <appender name="LogFileAppender" type="log4net.Appender.FileAppender"> | ||
32 | <file value="Robust.log" /> | ||
33 | <appendToFile value="true" /> | 29 | <appendToFile value="true" /> |
34 | <filter type="log4net.Filter.LoggerMatchFilter"> | 30 | <filter type="log4net.Filter.LoggerMatchFilter"> |
35 | <loggerToMatch value="special"/> | 31 | <loggerToMatch value="special"/> |
36 | <acceptOnMatch value="false"/> | 32 | <acceptOnMatch value="false"/> |
37 | </filter> | 33 | </filter> |
38 | <layout type="log4net.Layout.PatternLayout"> | 34 | <layout type="log4net.Layout.PatternLayout"> |
39 | <conversionPattern value="%date %-5level (%thread) - %logger %message%newline" /> | 35 | <conversionPattern value="%date{yyyy-MM-dd HH:mm:ss.fff} %-5level (%thread) - %logger %message%newline" /> |
40 | </layout> | 36 | </layout> |
41 | </appender> | 37 | </appender> |
42 | 38 | ||
@@ -49,7 +45,6 @@ | |||
49 | </appender> | 45 | </appender> |
50 | 46 | ||
51 | <root> | 47 | <root> |
52 | <level value="DEBUG" /> | ||
53 | <appender-ref ref="Console" /> | 48 | <appender-ref ref="Console" /> |
54 | <appender-ref ref="LogFileAppender" /> | 49 | <appender-ref ref="LogFileAppender" /> |
55 | </root> | 50 | </root> |