source: other-projects/trunk/gs3-webservices-democlient/src/log4j.properties@ 15238

Last change on this file since 15238 was 15238, checked in by ak19, 15 years ago

log4j.properties file. It will copied to be used by the executable once built. It can also be used by the eclipse project

File size: 2.5 KB
Line 
1## gs3-webservices-demo-client home
2democlient.home=.
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)
8#log4j.disableOverride=false
9##Disable all logging in all categories for messages with priority equal to
10##or lower than the one given here
11#log4j.disable=DEBUG
12
13#####configure the loggers####
14##general logger
15log4j.rootCategory=INFO, infolog
16
17### Print only messages of level INFO or above in the package
18### org.greenstone.gs3client
19log4j.category.org.greenstone.gs3client=INFO, clientlog
20log4j.additivity.org.greenstone.gs3client=false
21
22### Print all messages of level DEBUG or above in the package
23### org.greenstone.fedora
24log4j.category.org.greenstone.fedora=DEBUG, clientlog
25log4j.additivity.org.greenstone.fedora=false
26
27###server logger - problem, the name can be: QBRSOAPServer-sitename,
28###where sitename need not always be localsite...
29###log4j.category.org.greenstone.gs3services.QBRSOAPServer=DEBUG, webserviceslog
30###log4j.additivity.org.greenstone.gs3services.QBRSOAPServer=false
31
32#####configure appenders and their oprions####
33##general logger
34log4j.appender.infolog=org.apache.log4j.RollingFileAppender
35log4j.appender.infolog.File=${democlient.home}/logs/info.log
36#Control the maximum log file size
37log4j.appender.infolog.MaxFileSize=100KB
38#Keep backup file(s) (backups will be in filename.1, .2, .3 etc.)
39log4j.appender.infolog.MaxBackupIndex=3
40
41##client logger
42log4j.appender.clientlog=org.apache.log4j.RollingFileAppender
43log4j.appender.clientlog.File=${democlient.home}/logs/client.log
44#Control the maximum log file size
45log4j.appender.clientlog.MaxFileSize=200KB
46
47##web services logger
48###log4j.appender.webserviceslog=org.apache.log4j.RollingFileAppender
49###log4j.appender.webserviceslog.File=${democlient.home}/logs/webservices.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
57log4j.appender.clientlog.layout=org.apache.log4j.PatternLayout
58log4j.appender.clientlog.layout.ConversionPattern=%-5p: [%d{yyyy-MM-dd hh:mm:ss}] %C{1}.%M()%n %m%n
59
60###log4j.appender.webserviceslog.layout=org.apache.log4j.PatternLayout
61###log4j.appender.webserviceslog.layout.ConversionPattern=%-5p: [%d{yyyy-MM-dd hh:mm:ss}] %C{1}.%M()%n %m%n
Note: See TracBrowser for help on using the repository browser.