users@glassfish.java.net

Re: JPA logging levels with Embedded Glassfish/EJBContainer

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Tue, 17 May 2011 13:34:47 -0700

You need to change java.util.logging.ConsoleHandler.level to FINE as
well in your jdk logging.properties.

-marina

emiddio-frontier wrote:
> the below persistense.xml has logging level set to FINE --but all i
> get is INFO
>
> any suggestions ?
>
> thanks
>
> <?xml version="1.0" encoding="UTF-8"?>
> <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
> http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
> <persistence-unit name="chapter09PU" transaction-type="JTA">
> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
> <!--<jta-data-source>jdbc/chapter07DS</jta-data-source>-->
> <jta-data-source>jdbc/__default</jta-data-source>
> <class>org.beginningee6.book.chapter09.ex01.CD01</class>
> <class>org.beginningee6.book.chapter09.ex01.Book01</class>
> <properties>
> <property name="eclipselink.ddl-generation"
> value="drop-and-create-tables"/>
> <property name="eclipselink.logging.level" value="FINE"/>
> </properties>
> </persistence-unit>
> </persistence>
>
>