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 logging.properties 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
> (http://java.sun.com/javase/6/docs/api/java/util/logging/LogManager.html)
> to change the config file from the default
> ($JRE_HOME/lib/logging.properties). 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
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
> 
> 


-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://old.nabble.com/Logging-questions-tp27788400p27837321.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top