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 /bin/OpenSim.exe.config | |
parent | Don't throw exceptions on threat level checks and a few other script function... (diff) | |
download | opensim-SC_OLD-340230a3a09518f8ef15f92732d4bd0bad7a2a34.zip opensim-SC_OLD-340230a3a09518f8ef15f92732d4bd0bad7a2a34.tar.gz opensim-SC_OLD-340230a3a09518f8ef15f92732d4bd0bad7a2a34.tar.bz2 opensim-SC_OLD-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 |
1 files changed, 3 insertions, 10 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> |