Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] setting eclipselink log level

I mean : no it did not help :

The persistence.xml looks fine on deployed server, but still we get logs generated .

Sorry I was not clear.
--
Eric Le Goff
http://fr.linkedin.com/in/elegoff





On Thu, Jul 12, 2012 at 11:29 AM, Rodion Gushchin <graymagi@xxxxxxxxx> wrote:
So, that helped?


On Thu, Jul 12, 2012 at 11:17 AM, Eric Le Goff <elegoff@xxxxxxxxx> wrote:
OK, I checked and deployed version of the file (in WEB-INF/classes/META-INF) is exactly the same.
Thanks 






On Thu, Jul 12, 2012 at 10:55 AM, Rodion Gushchin <graymagi@xxxxxxxxx> wrote:
Can you check contents of persistence.xml file in deployed application not in your source directory?

On Thu, Jul 12, 2012 at 10:12 AM, Eric Le Goff <elegoff@xxxxxxxxx> wrote:
I am starting to use eclipselink for a tomcat application connected to an Oracle database.

We reaching the phase where we would like to push our application on production servers but would like to minimize the logging verbosity impact.

We came up with the following configuration in persistence.xml (located in our WEB_INF/src/META-INF directory) :


[...]
<persistence-unit name="My_PU" transaction-type="RESOURCE_LOCAL">
[...]
        <properties>
            <property name="eclipselink.ddl-generation" value="none"/>            

            <property name="eclipselink.logging.level" value="OFF" />
            <property name="eclipselink.logging.level.sql" value="OFF" />
            <property name="eclipselink.logging.level.cache" value="OFF" />
            <property name="eclipselink.logging.thread" value="false" />
            <property name="eclipselink.logging.session" value="false" />
            <property name="eclipselink.logging.exceptions" value="false" />
            <property name="eclipselink.logging.timestamp" value="false" />

            <!--  optional but could optimze -->
            <property name="eclipselink.target-database" value="Oracle"/>
            <property name="eclipselink.jdbc.native-sql" value="true"/>
            
        </properties>
    </persistence-unit>
</persistence>


Our assumption was that this setting was ok for a silent logging.
But still our console displays lines like :

[EL Config]: The access type for the persistent class [class com.foo.modele.entity.AbstractEntity] is set to [FIELD].
[..] // many other similar lines
[EL Config]: The alias name for the entity class [class com.foo.modele.entity.Name] is being defaulted to: Name.
[..]
[EL Info]: EclipseLink, version: Eclipse Persistence Services - 2.3.2.v20111125-r10461
[...]

What are missing so that we can totally get rid of those [EL Config] and [EL Info] output ?

Thanks.

--
Eric Le Goff




_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



Back to the top