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

Revision 32309, 2.6 KB (checked in by kjdon, 15 months ago)

renaming resources .in files to .svn as this better matches the purpose - they are unedited files for versioning, so we don't accidentally commit personal modified ones. From these we will now generate .in versions duing ant prepare (previously had no suffix). The .in versions in resources are used to generate the run time versions.

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