Log4j-access-valve is a Tomcat valve that enables ACCESS logging via Log4j
- ..
- ..
To build:
$ gradle build
Generating Intellij IDE modules:
$ gradle idea
- ..
- ..
- Add lib and bin directories to our tomcat home
- Download and add required jars for log4j
- Move our old logging config out of the way
mkdir -p /var/lib/tomcat7/lib /var/lib/tomcat7/bin && \
wget -P /var/lib/tomcat7/bin \
http://mirror.metrocast.net/apache/tomcat/tomcat-7/v7.0.54/bin/extras/tomcat-juli.jar && \
wget -P /var/lib/tomcat7/lib \
http://mirror.metrocast.net/apache/tomcat/tomcat-7/v7.0.54/bin/extras/tomcat-juli-adapters.jar
cd /tmp && \
wget http://archive.apache.org/dist/logging/log4j/1.2.16/apache-log4j-1.2.16.tar.gz && \
tar -zxvf apache-log4j-1.2.16.tar.gz && \
cp apache-log4j-1.2.16/log4j-1.2.16.jar /var/lib/tomcat7/lib/
mv /var/lib/tomcat7/conf/logging.properties /var/lib/tomcat7/conf/logging.properties.old
- Now add the sample config file, sample-conf / log4j.properties, to /var/lib/tomcat7/lib
See HISTORY.md for more info