root/main/trunk/greenstone3/resources/web/log4j.properties.svn @ 32311

Revision 32311, 2.7 KB (checked in by kjdon, 13 months ago)

some comment updates

  • Property svn:keywords set to Author Date Id Revision
Line 
1## Don't edit version in web/WEB-INF/classes, edit .in version in resources/web
2
3## greenstone home
4gsdl3.home=@gsdl3home@
5gsdl3.writablehome=@gsdl3writablehome@
6
7##Configure log4j's operation at the meta level                             
8##Observe log4j parsing this file
9#log4j.debug=true
10##Set this to false for log4j to actually obey the log4j.disable property(next)
11log4j.disableOverride=false
12##Disable all logging in all categories for messages with priority equal to
13##or lower than the one given here
14log4j.disable=DEBUG
15
16#####configure the loggers####
17##general logger         
18##log4j.rootCategory=DEBUG, infolog
19## to enable DEBUG, uncomment out the above line and comment out the following line                                   
20log4j.rootCategory=INFO, infolog
21
22##usage logger
23log4j.category.org.greenstone.gsdl3.LibraryServlet=INFO, usagelog
24log4j.additivity.org.greenstone.gsdl3.LibraryServlet=false
25
26##server logger
27##log4j.category.org.greenstone.server=DEBUG, serverlog
28## to enable DEBUG, uncomment out the above line and comment out the following line 
29log4j.category.org.greenstone.server=INFO, serverlog
30log4j.additivity.org.greenstone.server=false
31
32#####configure appenders and their oprions####                                 
33##general logger
34log4j.appender.infolog=org.apache.log4j.RollingFileAppender
35log4j.appender.infolog.File=${gsdl3.writablehome}/logs/greenstone.log
36#Control the maximum log file size
37log4j.appender.infolog.MaxFileSize=10000KB
38#Keep backup file(s) (backups will be in filename.1, .2, .3 etc.)
39log4j.appender.infolog.MaxBackupIndex=3
40
41##usage logger
42log4j.appender.usagelog=org.apache.log4j.RollingFileAppender
43log4j.appender.usagelog.File=${gsdl3.writablehome}/logs/usage.log
44#Control the maximum log file size
45log4j.appender.usagelog.MaxFileSize=10000KB
46
47##Server's logger
48log4j.appender.serverlog=org.apache.log4j.RollingFileAppender
49log4j.appender.serverlog.File=${gsdl3.writablehome}/logs/server.log
50
51
52#####Configure appender layouts and their options####
53## general logger layout
54log4j.appender.infolog.layout=org.apache.log4j.PatternLayout
55log4j.appender.infolog.layout.ConversionPattern=%-5p: [%d{yyyy-MM-dd hh:mm:ss}] %C{1}.%M()%n %m%n
56
57##usage logger layout
58# Usage log contains:                                                       
59#      loggingTime + servletName + args (in URL plus saved in a session) + 
60#      remoteAddress + sessionID + browerInfo                               
61log4j.appender.usagelog.layout=org.apache.log4j.PatternLayout
62log4j.appender.usagelog.layout.ConversionPattern=[%d{yyyy-MM-dd hh:mm:ss}] %m%n
63
64##server logger layout
65log4j.appender.serverlog.layout=org.apache.log4j.PatternLayout
66log4j.appender.serverlog.layout.ConversionPattern=%-5p: [%d{yyyy-MM-dd hh:mm:ss}] %C{1}.%M()%n %m%n
67
Note: See TracBrowser for help on using the browser.