1 | ## greenstone home
|
---|
2 | gsdl3.home=@gsdl3home@
|
---|
3 |
|
---|
4 | ##Configure log4j's operation at the meta level
|
---|
5 | ##Observe log4j parsing this file
|
---|
6 | #log4j.debug=true
|
---|
7 | ##Set this to false for log4j to actually obey the log4j.disable property(next)
|
---|
8 | log4j.disableOverride=false
|
---|
9 | ##Disable all logging in all categories for messages with priority equal to
|
---|
10 | ##or lower than the one given here
|
---|
11 | log4j.disable=DEBUG
|
---|
12 |
|
---|
13 | ##configure the loggers
|
---|
14 | log4j.rootCategory=INFO, infolog
|
---|
15 | log4j.category.org.greenstone.gsdl3.LibraryServlet=INFO, usagelog
|
---|
16 | log4j.additivity.org.greenstone.gsdl3.LibraryServlet=false
|
---|
17 |
|
---|
18 | ##configure appenders and their oprions
|
---|
19 | log4j.appender.infolog=org.apache.log4j.RollingFileAppender
|
---|
20 | log4j.appender.infolog.File=${gsdl3.home}/logs/greenstone.log
|
---|
21 | ##Control the maximum log file size
|
---|
22 | log4j.appender.infolog.MaxFileSize=100KB
|
---|
23 | ##Keep backup file(s) (backups will be in filename.1, .2, .3 etc.)
|
---|
24 | log4j.appender.infolog.MaxBackupIndex=3
|
---|
25 |
|
---|
26 | log4j.appender.usagelog=org.apache.log4j.RollingFileAppender
|
---|
27 | log4j.appender.usagelog.File=${gsdl3.home}/logs/usage.log
|
---|
28 | ##Control the maximum log file size
|
---|
29 | log4j.appender.usagelog.MaxFileSize=1000KB
|
---|
30 |
|
---|
31 | ##Configure appender layouts and their options
|
---|
32 | log4j.appender.infolog.layout=org.apache.log4j.PatternLayout
|
---|
33 | log4j.appender.infolog.layout.ConversionPattern=%-5p: [%d{yyyy-mm-dd hh:mm}] %C{1}.%M()%n %m%n
|
---|
34 |
|
---|
35 | ## Usage log contains:
|
---|
36 | ## loggingTime + servletName + args (in URL plus saved in a session) +
|
---|
37 | ## remoteAddress + sessionID + browerInfo
|
---|
38 | log4j.appender.usagelog.layout=org.apache.log4j.PatternLayout
|
---|
39 | log4j.appender.usagelog.layout.ConversionPattern=[%d{yyyy-mm-dd hh:mm}] %m%n
|
---|
40 |
|
---|