Return-Path: X-Original-To: apmail-openejb-users-archive@www.apache.org Delivered-To: apmail-openejb-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28AFAC6FB for ; Sun, 12 Aug 2012 22:49:12 +0000 (UTC) Received: (qmail 13737 invoked by uid 500); 12 Aug 2012 22:49:12 -0000 Delivered-To: apmail-openejb-users-archive@openejb.apache.org Received: (qmail 13725 invoked by uid 500); 12 Aug 2012 22:49:12 -0000 Mailing-List: contact users-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openejb.apache.org Delivered-To: mailing list users@openejb.apache.org Received: (qmail 13714 invoked by uid 99); 12 Aug 2012 22:49:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Aug 2012 22:49:11 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.250.139 is neither permitted nor denied by domain of twelve.eighty@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Aug 2012 22:49:06 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1T0gxi-0000Vz-38 for users@openejb.apache.org; Sun, 12 Aug 2012 15:48:46 -0700 Date: Sun, 12 Aug 2012 15:48:46 -0700 (PDT) From: twelveeighty To: users@openejb.apache.org Message-ID: <1344811726014-4656828.post@n4.nabble.com> Subject: TomEE openJPA logging not working MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I am stuck trying to get openJPA to log its openjpa.jdbc.SQL statements. No matter what I try, I can't seem to bump up the log level for openJPA. Ideally, I'd like to have those logged to my log4j configuration, but at this point, I'll settle for ANY solution that will have me see those log entries. My app is an "all in one" WAR, as described in http://openejb.apache.org/deploying-in-tomee.html. Here's what I tried so far: LOG4J: I have a logging.properties file in the /lib folder. In it, I use: log4j.category.openjpa.jdbc.SQL=DEBUG This is alongside my other log settings, which are working fine: log4j.category.=DEBUG, where is the root package for my own code. For the deployed app, in the META-INF/persistence.xml, I have defined: This doesn't work. All I see in the catalina.out console log is the two statements: INFO - Starting OpenJPA 2.2.0 INFO - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary". But nothing in my log4j log. JDK LOG: For this, I added the following to the /conf/logging.properties: openjpa.jdbc.SQL.level=ALL And then in my persistence.xml, I use: This also doesn't work. I am able to use openJPA logging in log4j with the described method on "vanilla" Tomcat 7 with openJPA, so I do not think this is a problem with openJPA. Can someone point me in the right direction? Thanks! -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-openJPA-logging-not-working-tp4656828.html Sent from the OpenEJB User mailing list archive at Nabble.com.