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

Last change on this file since 13559 was 13559, checked in by shaoqun, 15 years ago

added the server logger

  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 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####
14##general logger
15log4j.rootCategory=INFO, infolog
16
17##usage logger
18log4j.category.org.greenstone.gsdl3.LibraryServlet=INFO, usagelog
19log4j.additivity.org.greenstone.gsdl3.LibraryServlet=false
20
21##server logger
22log4j.category.org.greenstone.server=INFO, serverlog
23log4j.additivity.org.greenstone.server=false
24
25#####configure appenders and their oprions####
26##general logger
27log4j.appender.infolog=org.apache.log4j.RollingFileAppender
28log4j.appender.infolog.File=${gsdl3.home}/logs/greenstone.log
29#Control the maximum log file size
30log4j.appender.infolog.MaxFileSize=100KB
31#Keep backup file(s) (backups will be in filename.1, .2, .3 etc.)
32log4j.appender.infolog.MaxBackupIndex=3
33
34##usage logger
35log4j.appender.usagelog=org.apache.log4j.RollingFileAppender
36log4j.appender.usagelog.File=${gsdl3.home}/logs/usage.log
37#Control the maximum log file size
38log4j.appender.usagelog.MaxFileSize=1000KB
39
40##Server's logger
41log4j.appender.serverlog=org.apache.log4j.RollingFileAppender
42log4j.appender.serverlog.File=${gsdl3.home}/logs/server.log
43
44
45#####Configure appender layouts and their options####
46## general logger layout
47log4j.appender.infolog.layout=org.apache.log4j.PatternLayout
48log4j.appender.infolog.layout.ConversionPattern=%-5p: [%d{yyyy-mm-dd hh:mm}] %C{1}.%M()%n %m%n
49
50##usage logger layout
51# Usage log contains:
52# loggingTime + servletName + args (in URL plus saved in a session) +
53# remoteAddress + sessionID + browerInfo
54log4j.appender.usagelog.layout=org.apache.log4j.PatternLayout
55log4j.appender.usagelog.layout.ConversionPattern=[%d{yyyy-mm-dd hh:mm}] %m%n
56
57##server logger layout
58log4j.appender.serverlog.layout=org.apache.log4j.PatternLayout
59log4j.appender.serverlog.layout.ConversionPattern=%-5p: [%d{yyyy-mm-dd hh:mm}] %C{1}.%M()%n %m%n
60
Note: See TracBrowser for help on using the repository browser.