source: trunk/gsdl3/resources/java/log4j.properties.in@ 13121

Last change on this file since 13121 was 13121, checked in by shaoqun, 16 years ago

added log4j's property file which will be copyed to web/WEB-INF/classes after running ant configure-web

  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1## greenstone home
2gsdl3.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)
8log4j.disableOverride=false
9##Disable all logging in all categories for messages with priority equal to
10##or lower than the one given here
11log4j.disable=DEBUG
12
13##configure the loggers
14log4j.rootCategory=INFO, infolog
15log4j.category.org.greenstone.gsdl3.LibraryServlet=INFO, usagelog
16log4j.additivity.org.greenstone.gsdl3.LibraryServlet=false
17
18##configure appenders and their oprions
19log4j.appender.infolog=org.apache.log4j.RollingFileAppender
20log4j.appender.infolog.File=${gsdl3.home}/logs/greenstone.log
21##Control the maximum log file size
22log4j.appender.infolog.MaxFileSize=100KB
23##Keep backup file(s) (backups will be in filename.1, .2, .3 etc.)
24log4j.appender.infolog.MaxBackupIndex=3
25
26log4j.appender.usagelog=org.apache.log4j.RollingFileAppender
27log4j.appender.usagelog.File=${gsdl3.home}/logs/usage.log
28##Control the maximum log file size
29log4j.appender.usagelog.MaxFileSize=1000KB
30
31##Configure appender layouts and their options
32log4j.appender.infolog.layout=org.apache.log4j.PatternLayout
33log4j.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
38log4j.appender.usagelog.layout=org.apache.log4j.PatternLayout
39log4j.appender.usagelog.layout.ConversionPattern=[%d{yyyy-mm-dd hh:mm}] %m%n
40
Note: See TracBrowser for help on using the repository browser.