source: gsdl/trunk/lib/java/log4j.properties.in@ 20907

Last change on this file since 20907 was 20603, checked in by ak19, 13 years ago

Changes to Server.jar and affected files to add address_resolution options. 1. glisite.cfg.in and llssite.cfg.in have a host property where the host as specified or resolved from IP is stored. 2. gsicontrol.sh changed to set AllowFrom value to either the host specified OR to All if allow from all is checked in the GSI dialog. 3. New string properties added to server.properties for the updated GSI dialog for GS2. 4. log4j.properties.in updated so that the logger now can write to the console as well as the logfile specified (server.log in this case). At present only ERROR messages written to the logger are displayed in the console as well as logger message types that are higher up in the log4j hierarchy. 5. Server.jar updated after the changes to the GS3 server code (recompiled with Java 5).

File size: 2.7 KB
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
22##Set to INFO if you want INFO (success) messages to appear as well
23##Set to WARN if you want to turn INFO and DEBUG messages off.
24log4j.category.org.greenstone.server=INFO, stdout, serverlog
25log4j.additivity.org.greenstone.server=false
26
27#####configure appenders and their options####
28##console logger - send only ERROR messages out to the console
29log4j.appender.stdout=org.apache.log4j.ConsoleAppender
30log4j.appender.stdout.Threshold=ERROR
31log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
32log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
33
34##general logger
35log4j.appender.infolog=org.apache.log4j.RollingFileAppender
36log4j.appender.infolog.File=${gsdl2.home}/etc/logs-gsi/greenstone.log
37#Control the maximum log file size
38log4j.appender.infolog.MaxFileSize=100KB
39#Keep backup file(s) (backups will be in filename.1, .2, .3 etc.)
40log4j.appender.infolog.MaxBackupIndex=3
41
42##usage logger
43log4j.appender.usagelog=org.apache.log4j.RollingFileAppender
44log4j.appender.usagelog.File=${gsdl2.home}/etc/logs-gsi/usage.log
45#Control the maximum log file size
46log4j.appender.usagelog.MaxFileSize=1000KB
47
48##Server's logger
49log4j.appender.serverlog=org.apache.log4j.RollingFileAppender
50log4j.appender.serverlog.File=${gsdl2.home}/etc/logs-gsi/server.log
51
52
53#####Configure appender layouts and their options####
54## general logger layout
55log4j.appender.infolog.layout=org.apache.log4j.PatternLayout
56log4j.appender.infolog.layout.ConversionPattern=%-5p: [%d{yyyy-MM-dd hh:mm:ss}] %C{1}.%M()%n %m%n
57
58##usage logger layout
59# Usage log contains:
60# loggingTime + servletName + args (in URL plus saved in a session) +
61# remoteAddress + sessionID + browerInfo
62log4j.appender.usagelog.layout=org.apache.log4j.PatternLayout
63log4j.appender.usagelog.layout.ConversionPattern=[%d{yyyy-MM-dd hh:mm:ss}] %m%n
64
65##server logger layout
66log4j.appender.serverlog.layout=org.apache.log4j.PatternLayout
67log4j.appender.serverlog.layout.ConversionPattern=%-5p: [%d{yyyy-MM-dd hh:mm:ss}] %C{1}.%M()%n %m%n
68
Note: See TracBrowser for help on using the repository browser.