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

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

some comment updates

  • Property svn:keywords set to Author Date Id Revision
RevLine 
[32311]1## Don't edit version in web/WEB-INF/classes, edit .in version in resources/web
2
[13121]3## greenstone home
4gsdl3.home=@gsdl3home@
[27823]5gsdl3.writablehome=@gsdl3writablehome@
[13121]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
[13559]16#####configure the loggers####
[16653]17##general logger         
18##log4j.rootCategory=DEBUG, infolog
19## to enable DEBUG, uncomment out the above line and comment out the following line                                   
[13121]20log4j.rootCategory=INFO, infolog
[13559]21
22##usage logger
[13121]23log4j.category.org.greenstone.gsdl3.LibraryServlet=INFO, usagelog
24log4j.additivity.org.greenstone.gsdl3.LibraryServlet=false
25
[13559]26##server logger
[16653]27##log4j.category.org.greenstone.server=DEBUG, serverlog
28## to enable DEBUG, uncomment out the above line and comment out the following line 
[13559]29log4j.category.org.greenstone.server=INFO, serverlog
30log4j.additivity.org.greenstone.server=false
31
32#####configure appenders and their oprions####                                 
33##general logger
[13121]34log4j.appender.infolog=org.apache.log4j.RollingFileAppender
[27823]35log4j.appender.infolog.File=${gsdl3.writablehome}/logs/greenstone.log
[13559]36#Control the maximum log file size
[16653]37log4j.appender.infolog.MaxFileSize=10000KB
[13559]38#Keep backup file(s) (backups will be in filename.1, .2, .3 etc.)
[13121]39log4j.appender.infolog.MaxBackupIndex=3
40
[13559]41##usage logger
[13121]42log4j.appender.usagelog=org.apache.log4j.RollingFileAppender
[27823]43log4j.appender.usagelog.File=${gsdl3.writablehome}/logs/usage.log
[13559]44#Control the maximum log file size
[16653]45log4j.appender.usagelog.MaxFileSize=10000KB
[13121]46
[13559]47##Server's logger
48log4j.appender.serverlog=org.apache.log4j.RollingFileAppender
[27823]49log4j.appender.serverlog.File=${gsdl3.writablehome}/logs/server.log
[13559]50
51
52#####Configure appender layouts and their options####
53## general logger layout
[13121]54log4j.appender.infolog.layout=org.apache.log4j.PatternLayout
[13905]55log4j.appender.infolog.layout.ConversionPattern=%-5p: [%d{yyyy-MM-dd hh:mm:ss}] %C{1}.%M()%n %m%n
[13121]56
[13559]57##usage logger layout
58# Usage log contains:                                                       
59#      loggingTime + servletName + args (in URL plus saved in a session) + 
60#      remoteAddress + sessionID + browerInfo                               
[13121]61log4j.appender.usagelog.layout=org.apache.log4j.PatternLayout
[13905]62log4j.appender.usagelog.layout.ConversionPattern=[%d{yyyy-MM-dd hh:mm:ss}] %m%n
[13121]63
[13559]64##server logger layout
65log4j.appender.serverlog.layout=org.apache.log4j.PatternLayout
[13905]66log4j.appender.serverlog.layout.ConversionPattern=%-5p: [%d{yyyy-MM-dd hh:mm:ss}] %C{1}.%M()%n %m%n
[13559]67
Note: See TracBrowser for help on using the browser.