root/gsdl/trunk/lib/java/log4j.properties.in @ 18702

Revision 18702, 2.4 KB (checked in by ak19, 11 years ago)

Now the logs will be generated in etc/logs-gsi.

Line 
1## greenstone home
2gsdl2.home=@gsdl2home@
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=${gsdl2.home}/etc/logs-gsi/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=${gsdl2.home}/etc/logs-gsi/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=${gsdl2.home}/etc/logs-gsi/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:ss}] %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:ss}] %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:ss}] %C{1}.%M()%n %m%n
60
Note: See TracBrowser for help on using the browser.