Re: Log4j with Apache Tomcat 8.0.17
Thank you. That worked. Should i open a ticket in bugzilla to fix the doc? On 1/21/2015 1:43 PM, Mark Thomas wrote: On 21/01/2015 20:27, George Sexton wrote: I'm having a problem configuring log4j with Apache Tomcat 8.0.17. I'm using OpenSUSE 13.2 with OpenJDK 8.0: linux:java -version openjdk version 1.8.0_40 OpenJDK Runtime Environment (build 1.8.0_40-b10) OpenJDK 64-Bit Server VM (build 25.40-b14, mixed mode) I'm following the instructions in the log4j section of the Logging in Tomcat section of the Tomcat documentation. The steps do not appear to work, and there is no information in the log file that I can see that would assist me in troubleshooting this. Referencing the steps: 1) I have created log4j.properties in $CATALINA_BASE/lib. The file is readable by the tomcat user. linux:/srv/tomcat/lib # ls -al log4j.properties -rw-r--r-- 1 root root 2343 Jan 21 12:57 log4j.properties 2) I have downloaded log4j 1.2 or later (version 2.1) Try with the latest 1.x release. I'm fairly sure the API changes between 1.x and 2.x mean code changes are required on Tomcat's side to support 2.x. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- George Sexton *MH Software, Inc.* Voice: 303 438 9585 http://www.mhsoftware.com
Re: Log4j with Apache Tomcat 8.0.17
On 21/01/2015 21:04, George Sexton wrote: Thank you. That worked. Should i open a ticket in bugzilla to fix the doc? Please. Mark On 1/21/2015 1:43 PM, Mark Thomas wrote: On 21/01/2015 20:27, George Sexton wrote: I'm having a problem configuring log4j with Apache Tomcat 8.0.17. I'm using OpenSUSE 13.2 with OpenJDK 8.0: linux:java -version openjdk version 1.8.0_40 OpenJDK Runtime Environment (build 1.8.0_40-b10) OpenJDK 64-Bit Server VM (build 25.40-b14, mixed mode) I'm following the instructions in the log4j section of the Logging in Tomcat section of the Tomcat documentation. The steps do not appear to work, and there is no information in the log file that I can see that would assist me in troubleshooting this. Referencing the steps: 1) I have created log4j.properties in $CATALINA_BASE/lib. The file is readable by the tomcat user. linux:/srv/tomcat/lib # ls -al log4j.properties -rw-r--r-- 1 root root 2343 Jan 21 12:57 log4j.properties 2) I have downloaded log4j 1.2 or later (version 2.1) Try with the latest 1.x release. I'm fairly sure the API changes between 1.x and 2.x mean code changes are required on Tomcat's side to support 2.x. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Log4j with Apache Tomcat 8.0.17
On 21/01/2015 20:27, George Sexton wrote: I'm having a problem configuring log4j with Apache Tomcat 8.0.17. I'm using OpenSUSE 13.2 with OpenJDK 8.0: linux:java -version openjdk version 1.8.0_40 OpenJDK Runtime Environment (build 1.8.0_40-b10) OpenJDK 64-Bit Server VM (build 25.40-b14, mixed mode) I'm following the instructions in the log4j section of the Logging in Tomcat section of the Tomcat documentation. The steps do not appear to work, and there is no information in the log file that I can see that would assist me in troubleshooting this. Referencing the steps: 1) I have created log4j.properties in $CATALINA_BASE/lib. The file is readable by the tomcat user. linux:/srv/tomcat/lib # ls -al log4j.properties -rw-r--r-- 1 root root 2343 Jan 21 12:57 log4j.properties 2) I have downloaded log4j 1.2 or later (version 2.1) Try with the latest 1.x release. I'm fairly sure the API changes between 1.x and 2.x mean code changes are required on Tomcat's side to support 2.x. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org