Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 75863 invoked from network); 3 Mar 2010 11:38:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Mar 2010 11:38:03 -0000 Received: (qmail 54591 invoked by uid 500); 3 Mar 2010 11:37:53 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 54536 invoked by uid 500); 3 Mar 2010 11:37:52 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 54527 invoked by uid 99); 3 Mar 2010 11:37:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 11:37:52 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sgrace@us.ibm.com designates 32.97.182.137 as permitted sender) Received: from [32.97.182.137] (HELO e7.ny.us.ibm.com) (32.97.182.137) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 11:37:41 +0000 Received: from d01relay03.pok.ibm.com (d01relay03.pok.ibm.com [9.56.227.235]) by e7.ny.us.ibm.com (8.14.3/8.13.1) with ESMTP id o23BTUPZ019387 for ; Wed, 3 Mar 2010 06:29:30 -0500 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay03.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o23BbKp1113870 for ; Wed, 3 Mar 2010 06:37:20 -0500 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o23BbKQk001178 for ; Wed, 3 Mar 2010 08:37:20 -0300 Received: from d01ml251.pok.ibm.com (d01ml251.pok.ibm.com [9.56.227.119]) by d01av03.pok.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id o23BbKpB001173 for ; Wed, 3 Mar 2010 08:37:20 -0300 To: users@tomcat.apache.org MIME-Version: 1.0 Subject: Fw: java.util.logging - help needed with configuration and problem determination X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 From: Stuart Grace Message-ID: Date: Wed, 3 Mar 2010 06:37:19 -0500 X-MIMETrack: Serialize by Router on D01ML251/01/M/IBM(Release 8.0.1|February 07, 2008) at 03/03/2010 06:37:20, Serialize complete at 03/03/2010 06:37:20 Content-Type: multipart/alternative; boundary="=_alternative 003FD59E852576DB_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 003FD59E852576DB_= Content-Type: text/plain; charset="US-ASCII" I mistakenly stated this worked on my PC. I think the problem is happening on my workstation and is not related to jsvc. Stuart Grace/Fishkill/IBM 03/03/2010 12:21 AM To users@tomcat.apache.org cc Subject java.util.logging - help needed with configuration and problem determination I'm using JSVC to start Tomcat 6.0.20 as a daemon on Solaris. Java is jdk1.6.0_16. I need to deploy the same war file as 2 different contexts. Each context has the same logging.properties file in the classes directory. The conf/logging.properties has not been changed. Problem: The logging from both contexts IBINET and IBMIN are being written to both logs. ie IBINET.yyyy-mm-dd.log and IBMIN-yyyy-mm-dd.log. This did work on my PC where jsvc was not being used. Very difficult to test with out jsvc on Solaris due to firewall. Does the logging.properties file below look correct for loggers named eocene.web.* ? logging.properties handlers = 6IBINET.org.apache.juli.FileHandler, 7IBMIN.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler 6IBINET.org.apache.juli.FileHandler.level = FINE 6IBINET.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 6IBINET.org.apache.juli.FileHandler.prefix = IBINET. 7IBMIN.org.apache.juli.FileHandler.level = FINE 7IBMIN.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 7IBMIN.org.apache.juli.FileHandler.prefix = IBMIN. eocene.web.*.[Catalina].[localhost].[/IBINET].level = FINE eocene.web.*.[Catalina].[localhost].[/IBINET].handlers = 6IBINET.org.apache.juli.FileHandler eocene.web.*.[Catalina].[localhost].[/IBMIN].level = FINE eocene.web.*.[Catalina].[localhost].[/IBMIN].handlers = 7IBMIN.org.apache.juli.FileHandler java.util.logging.ConsoleHandler.level = FINE java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter startup script looks like case "$1" in start) # # Start Tomcat # $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Dcatalina.base=$CATALINA_BASE \ -Djava.io.tmpdir=$TMP_DIR \ -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties \ -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \ -wait 10 \ -pidfile $PID_FILE \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '&1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ exit $? ;; IBINET and IBMIN logs contain the same exact data from both contexts =>ls -l logs total 82 -rw-r--r-- 1 eocene01 atthb358 9930 Mar 2 23:26 IBINET.2010-03-02.log -rw-r--r-- 1 eocene01 atthb358 9930 Mar 2 23:26 IBMIN.2010-03-02.log -rw-r--r-- 1 root other 1377 Mar 2 23:25 catalina.2010-03-02.log -rw-r--r-- 1 root other 15722 Mar 2 23:26 catalina.out -rw-r--r-- 1 root other 0 Mar 2 23:22 host-manager.2010-03-02.log -rw-r--r-- 1 root other 232 Mar 2 23:22 localhost.2010-03-02.log -rw-r--r-- 1 root other 1132 Mar 2 23:25 manager.2010-03-02.log --=_alternative 003FD59E852576DB_=--