Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Logging questions

Yes, when using java.util.logging you must configure the level in the
java.util.logging config.

Swierzynski, Rafal wrote:
> Hi. I have been trying to configure logging in SE to my needs, and have a
> couple of observations / questions:
> 1. I want to use java.uti.logging (JUL), so I set:
> <property name="eclipselink.logging.logger"
> value="org.eclipse.persistence.logging.JavaLog" />
> I noticed that when this JavaLog is used, the "eclipselink.logging.level"
> property is ignored, and the ones from are used. Other
> options, like logging sessions and timestamp do work. Is this observation
> correct?
> 2. Normally in JUL one can set the "java.util.logging.config.file"
> property
> (
> to change the config file from the default
> ($JRE_HOME/lib/ The documentation only mentions that
> it is possible to configure logging by changing the JVM wide file - is
> there any particular reason for that? As this is a pretty intrusive thing
> to do (influences all apps running on this JVM and using JUL), it might be
> a good idea to mention the other option too, if there are no objections.
> The only gotcha worth mentioning I noticed is that when dynamic weaving in
> SE is used via -javaagent:eclipselink.jar, the config file property has to
> be specified on the command line as JVM  parameter, not by calling
> System.setProperty(), as it is not visible then.
> Regards,
> RafaƂ
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx

----- James Sutherland
 EclipseLink ,
Wiki: EclipseLink , TopLink 
Forums: TopLink , EclipseLink 
Book: Java Persistence 
View this message in context:
Sent from the EclipseLink - Users mailing list archive at

Back to the top