You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Rajasekhar Reddy (JIRA)" <ji...@apache.org> on 2015/12/07 15:46:11 UTC

[jira] [Created] (LOG4J2-1213) How to configure log4j2.xml to write JPA queries with parameters to the server console

Rajasekhar Reddy created LOG4J2-1213:
----------------------------------------

             Summary: How to configure log4j2.xml to write JPA queries with parameters to the server console
                 Key: LOG4J2-1213
                 URL: https://issues.apache.org/jira/browse/LOG4J2-1213
             Project: Log4j 2
          Issue Type: Question
            Reporter: Rajasekhar Reddy


I am trying to add the following to log4j2.xml to print the JPA traces (SQL queries with parameter values) on the WebSphere server console. 
   <Logger name="openjpa.jdbc.SQL" level="TRACE">                          
        <AppenderRef ref="CONSOLE" />                                   
   </Logger>

But, it did not work. Can you please suggest a way to print the traces?

Thanks



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org