root/other-projects/the-macronizer/trunk/web/log4j.properties.in @ 32622

Revision 32622, 1.3 KB (checked in by ak19, 20 months ago)

1. Now the Macronizer will work easily with a GS3, first 'run/source gs3-setup' in your GS3 installation before running the 'ant' command in your macronizer svn checkout (in the same terminal). 2. This will now copy the new context (template) macronizer.xml.in file into the GS3's tomcat. So you can then, in a new terminal, run/source gs3-setup.sh in y our GS3 followed by 'ant restart' in the same GS3 installation folder to start up tomcat. Then visit localhost:8383/macronizer to see the running macronizer. 3. Western's log4j.properties fix of hh to HH again.

Line 
1# See for basic example https://stackoverflow.com/questions/125 32339/no-appenders-could-be-found-for-loggerlog4j
2# For better examples, see /greenstone/greenstone3/web/WEB-INF/classes/log4j.properties
3
4#######################
5
6# define some reusable properties
7macronizer.home=@macronizer.home@
8macronizer.logplace=${macronizer.home}/web/logs
9
10# Let's log everything from the most basic DEBUG msgs on (so INFO, WARN, ERROR too)
11log4j.rootCategory=DEBUG, macronlog
12
13# copied from GS3
14log4j.category.web.servlets.DirectInput=INFO, macronlog
15log4j.additivity.web.servlets.DirectInput=false
16
17# We're saying our log "macronlog" is some file that gets appended to,
18# and it will write it out to "macron.log" located in whatever we defined the "logplace" to be
19log4j.appender.macronlog=org.apache.log4j.RollingFileAppender
20log4j.appender.macronlog.File=${macronizer.logplace}/macron.log
21
22# if you have more logs, define rootcategory, appender and appender.File for it as above
23# for each log also set the format of the output as below, after setting the layout to use PatternLayout class to parse the format
24
25log4j.appender.macronlog.layout=org.apache.log4j.PatternLayout
26log4j.appender.macronlog.layout.ConversionPattern=%-5p: [%d{yyyy-MM-dd HH:mm:ss}] %C{1}.%M()%n %m%n
27
28#######################
Note: See TracBrowser for help on using the browser.