incubator-hise-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "P.N." <peter.nabbef...@gmx.de>
Subject Re: Where to set openjpa.Runtime log level?
Date Thu, 14 Jul 2011 11:57:17 GMT
Thank You, that will help me a lot if it still doesn't work!

Regards
Peter

pbs schrieb:
> Hi,
>
> fast, but unfortunately inelegant way to change log level for openJpa:
>
> in hise-ds.xml you have to add one line in definition of
> jpaVendorAdapter bean:
>
> <entry key="openjpa.Log" value="DefaultLevel=WARN, Runtime=TRACE,
> Tool=INFO, SQL=TRACE"/>
>
> thus whole bean definition will be look for example:
>
> <!-- OpenJPA H2 Driver -->
>
> <bean id="jpaVendorAdapter"
> class="org.apache.hise.dao.vendor.OpenJpaVendorAdapter">
>
> <property name="database" value="H2"/>
>
> <property name="databasePlatform"
> value="org.apache.openjpa.jdbc.sql.H2Dictionary"/>
>
> <property name="generateDdl" value="true" />
>
> <property name="showSql" value="false" />
>
> <property name="extProperties">
>
> <util:map>
>
> <entry key="openjpa.jdbc.SynchronizeMappings"
> value="buildSchema(ForeignKeys=true,SchemaAction='add')"/>
>
> *<entry key="openjpa.Log" value="DefaultLevel=WARN, Runtime=TRACE,
> Tool=INFO, SQL=INFO"/>*
>
> </util:map>
>
> </property>
>
> </bean>
>
>
> but there is one very important condition: property showSql MUST BE
> false. However if you set openjpa.log explicit you can also manipulate
> openjpa sql log level.
>
> best regards
> Pawel
>> Hello!
>>
>> I've sent an error output to this list, containig the following:
>> The error has been consumed. To see it, set your openjpa.Runtime log
>> level to TRACE. Load-time class transformation will not be available.
>> OpenJPA seems to be used from hise (which still does not work for me),
>> so You can probably tell me, where to change the log level?
>>
>> Kind regards
>> Peter
>>
>>
>
>



Mime
View raw message