You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Rick Curtis <cu...@gmail.com> on 2011/07/12 18:21:51 UTC

Re: Logging questions

Jason -

Sorry about the slow reply, I must have missed this one somehow.

> 1. Is it possible to (dynamically) change the logging levels at runtime?
No, I don't believe so.

> 2. Could someone elaborate more on the usage of java.util.logging by
setting to value to "commons"?
What more are you looking for?

On Wed, Jun 29, 2011 at 3:55 PM, Jason Pyeron <jp...@pdinc.us> wrote:

> Using 2.1.x I have 2 questions I was unable to google for an answer after
> reading the manual.
>
> 1. Is it possible to (dynamically) change the logging levels at runtime?
>
> 2. Could someone elaborate more on the usage of java.util.logging by
> setting the
> value to "commons"?
>
> -Jason
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -                                                               -
> - Jason Pyeron                      PD Inc. http://www.pdinc.us -
> - Principal Consultant              10 West 24th Street #100    -
> - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
> -                                                               -
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> This message is copyright PD Inc, subject to license 20080407P00.
>
>
>


-- 
*Rick Curtis*

RE: Logging questions

Posted by Jason Pyeron <jp...@pdinc.us>.
> -----Original Message-----
> From: Michael Dick [mailto:michael.d.dick@gmail.com] 
> Sent: Wednesday, July 13, 2011 14:46
> To: users@openjpa.apache.org
> Subject: Re: Logging questions
> 
> On Wed, Jul 13, 2011 at 12:00 PM, Jason Pyeron 
> <jp...@pdinc.us> wrote:
> 
> > > -----Original Message-----
> > > From: Michael Dick [mailto:michael.d.dick@gmail.com]
> > > Sent: Wednesday, July 13, 2011 12:53
> > > To: users@openjpa.apache.org
> > > Subject: Re: Logging questions
> > >
> > > It looks like you have the log4j-over-slf4j bridge on your 
> > > classpath. Or some combination of the different logging 
> facilities.
> >
> > It is possible. But my test case does not have it. I will 
> check deeper 
> > on this.
> 
> 
> FWIW, I created a maven project with just commons-logging and 
> log4j-over-slf4j on the classpath, and got a very similar 
> error. It sounds like you have a standalone testcase too, is 
> that something you can send us?
> 

Will have to work it up clean, as it uses our local db. But that may be moot,
see below.

> 
> > >
> > > So commons-logging detects log4j and tries to use it. 
> Log4j tries to 
> > > delegate to slf4j, but that fails due to the missing 
> implementation 
> > > class.
> > >
> > > Do other parts of your application use log4j or slf4j? If 
> not, can 
> > > you remove them from the classpath and try 'just'
> > > with commons-logging?
> > >
> >
> > There are legacy parts of the system that were designed for other 
> > logging frameworks, I do not have permission to modify 
> those. I will 
> > need to find a way to force java.util.logging.
> 
> 
> I think this is more of a commons-logging behavior than 
> OpenJPA. From looking at the commons-logging 
> documentation<http://commons.apache.org/logging/commons-loggin
g-1.1.1/guide.html#Configuration>it
> will look for log4j on the classpath before trying java.util.logging.
> 
> The doc doesn't spell it out, or at least I couldn't find it, 
>  but you can add a commons-logging.properties file to the 
> classpath. The properties file should have this entry :
> org.apache.commons.logging.Log=org.apache.commons.logging.impl
> .Jdk14Logger
> 

Bingo. It is a commons-logging issue. I will open a jira ticket up and submit a
patch (over the weekend) to update the docs for openjpa adding this example.

> In my simple test it looks like it used Jdk4Logging.  I don't 
> know whether it will play well with the legacy parts of your 
> system, but it's worth a try.
> 
> Hope this helps,
> -mike
> 
>  <snip>
> 


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 


Re: Logging questions

Posted by Michael Dick <mi...@gmail.com>.
On Wed, Jul 13, 2011 at 12:00 PM, Jason Pyeron <jp...@pdinc.us> wrote:

> > -----Original Message-----
> > From: Michael Dick [mailto:michael.d.dick@gmail.com]
> > Sent: Wednesday, July 13, 2011 12:53
> > To: users@openjpa.apache.org
> > Subject: Re: Logging questions
> >
> > It looks like you have the log4j-over-slf4j bridge on your
> > classpath. Or some combination of the different logging facilities.
>
> It is possible. But my test case does not have it. I will check deeper on
> this.


FWIW, I created a maven project with just commons-logging and
log4j-over-slf4j on the classpath, and got a very similar error. It sounds
like you have a standalone testcase too, is that something you can send us?


> >
> > So commons-logging detects log4j and tries to use it. Log4j
> > tries to delegate to slf4j, but that fails due to the missing
> > implementation class.
> >
> > Do other parts of your application use log4j or slf4j? If
> > not, can you remove them from the classpath and try 'just'
> > with commons-logging?
> >
>
> There are legacy parts of the system that were designed for other logging
> frameworks, I do not have permission to modify those. I will need to find a
> way
> to force java.util.logging.


I think this is more of a commons-logging behavior than OpenJPA. From
looking at the commons-logging
documentation<http://commons.apache.org/logging/commons-logging-1.1.1/guide.html#Configuration>it
will look for log4j on the classpath before trying java.util.logging.

The doc doesn't spell it out, or at least I couldn't find it,  but you can
add a commons-logging.properties file to the classpath. The properties file
should have this entry :
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger

In my simple test it looks like it used Jdk4Logging.  I don't know whether
it will play well with the legacy parts of your system, but it's worth a
try.

Hope this helps,
-mike

 <snip>

RE: Logging questions

Posted by Jason Pyeron <jp...@pdinc.us>.
> -----Original Message-----
> From: Michael Dick [mailto:michael.d.dick@gmail.com] 
> Sent: Wednesday, July 13, 2011 12:53
> To: users@openjpa.apache.org
> Subject: Re: Logging questions
> 
> It looks like you have the log4j-over-slf4j bridge on your 
> classpath. Or some combination of the different logging facilities.

It is possible. But my test case does not have it. I will check deeper on this.

> 
> So commons-logging detects log4j and tries to use it. Log4j 
> tries to delegate to slf4j, but that fails due to the missing 
> implementation class.
> 
> Do other parts of your application use log4j or slf4j? If 
> not, can you remove them from the classpath and try 'just' 
> with commons-logging?
> 

There are legacy parts of the system that were designed for other logging
frameworks, I do not have permission to modify those. I will need to find a way
to force java.util.logging.

> -mike
> 
> On Tue, Jul 12, 2011 at 1:36 PM, Jason Pyeron 
> <jp...@pdinc.us> wrote:
> 
> > > -----Original Message-----
> > > From: Rick Curtis [mailto:curtisr7@gmail.com]
> > > Sent: Tuesday, July 12, 2011 14:00
> > > To: users@openjpa.apache.org
> > > Subject: Re: Logging questions
> > >
> > > What do you have set for a configuration property? Have you tried 
> > > openjpa.Log=commons?
> >
> > <snip/>
> >
> >                <properties>
> >            <property name="openjpa.DetachState"
> > value="loaded(DetachedStateField=false)"/>
> >                        <property name="openjpa.Log" 
> value="commons"/>
> >                        <!-- <property name="openjpa.Log"
> > value="SQL=TRACE"/>
> > -->
> >                        <!-- <property name="openjpa.Log"
> > value="DefaultLevel=TRACE"/> -->
> >                        <!-- <property name="openjpa.Log" 
> value="none"/> -->
> >                        <property name="javax.persistence.jdbc.url"
> > value="jdbc:oracle:thin:@localhost:1521/XE"/>
> >                <property name="javax.persistence.jdbc.driver"
> > value="oracle.jdbc.driver.OracleDriver"/>
> >                <property name="javax.persistence.jdbc.user"
> > value="fepldev_web"
> > />
> >                <property name="javax.persistence.jdbc.password"
> > value="password" />
> >                        <property name="openjpa.jdbc.EagerFetchMode"
> > value="join" />
> >                        <property name="openjpa.jdbc.SchemaFactory"
> > value="native(ForeignKeys=true) " />
> >        </properties>
> >    </persistence-unit>
> > </persistence>
> >
> >
> > Also worth noting, it burps out at the very start:
> >
> > SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> > SLF4J: Defaulting to no-operation (NOP) logger implementation
> > SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for 
> > further details.
> > log4j:WARN No appenders could be found for logger (openjpa.Runtime).
> > log4j:WARN Please initialize the log4j system properly.
> >
> > >
> > > On Tue, Jul 12, 2011 at 12:48 PM, Jason Pyeron <jp...@pdinc.us> 
> > > wrote:
> > >
> > > > > -----Original Message-----
> > > > > From: Rick Curtis [mailto:curtisr7@gmail.com]
> > > > > Sent: Tuesday, July 12, 2011 12:22
> > > > > To: users@openjpa.apache.org
> > > > > Subject: Re: Logging questions
> > > > >
> > > > > Jason -
> > > > >
> > > > > Sorry about the slow reply, I must have missed this 
> one somehow.
> > > > >
> > > > > > 1. Is it possible to (dynamically) change the logging
> > > > > levels at runtime?
> > > > > No, I don't believe so.
> > > > >
> > > > > > 2. Could someone elaborate more on the usage of
> > > java.util.logging
> > > > > > by
> > > > > setting to value to "commons"?
> > > > > What more are you looking for?
> > > >
> > > > Hmm.. It does not seem to use j.u.l for logging when set to
> > > commons on
> > > > Sun Java
> > > > 1.6 64 bit.
> > > >
> > > > My formatter would output like:
> > > >
> > > > Jul 12, 2011 12:32:10 PM
> > > org.apache.coyote.http11.Http11BaseProtocol
> > > > init
> > > > INFO: Initializing Coyote HTTP/1.1 on http-8080
> > > >
> > > > But I am getting interspersed [double CR added for clarity]:
> > > >
> > > > 3500  localhost  WARN   [main] openjpa.MetaData - Found
> > > duplicate generator
> > > > "seq" in "class
> > > >
> > > 
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.RecycledVoucherCheckFile".
> > > > Ignoring.
> > > >
> > > >
> > > > Jul 12, 2011 1:43:58 PM
> > > > 
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels setUp
> > > > FINE: factory created
> > > >
> > > >
> > > > 203  localhost  INFO   [main] openjpa.Runtime - Starting OpenJPA
> > > > 2.1.0-SNAPSHOT
> > > >
> > > >
> > > > 484  localhost  INFO   [main] openjpa.jdbc.JDBC - Using
> > > dictionary class
> > > > "org.apache.openjpa.jdbc.sql.OracleDictionary".
> > > >
> > > >
> > > > Jul 12, 2011 1:44:07 PM
> > > > 
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels setUp
> > > > FINE: em created
> > > >
> > > >
> > > > Jul 12, 2011 1:44:07 PM
> > > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels
> > > > testListAllObjects
> > > > INFO: class
> > > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.AdditionalErrorInfo:
> > > > before
> > > >
> > > >
> > > > 14078  localhost  TRACE  [main] openjpa.jdbc.SQL - <t ...
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > >
> > > > > On Wed, Jun 29, 2011 at 3:55 PM, Jason Pyeron 
> <jp...@pdinc.us>
> > > > > wrote:
> > > > >
> > > > > > Using 2.1.x I have 2 questions I was unable to 
> google for an 
> > > > > > answer after reading the manual.
> > > > > >
> > > > > > 1. Is it possible to (dynamically) change the logging
> > > > > levels at runtime?
> > > > > >
> > > > > > 2. Could someone elaborate more on the usage of
> > > > > java.util.logging by
> > > > > > setting the value to "commons"?
> > > > > >
> > > > > > -Jason


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 


Re: Logging questions

Posted by Michael Dick <mi...@gmail.com>.
It looks like you have the log4j-over-slf4j bridge on your classpath. Or
some combination of the different logging facilities.

So commons-logging detects log4j and tries to use it. Log4j tries to
delegate to slf4j, but that fails due to the missing implementation class.

Do other parts of your application use log4j or slf4j? If not, can you
remove them from the classpath and try 'just' with commons-logging?

-mike

On Tue, Jul 12, 2011 at 1:36 PM, Jason Pyeron <jp...@pdinc.us> wrote:

> > -----Original Message-----
> > From: Rick Curtis [mailto:curtisr7@gmail.com]
> > Sent: Tuesday, July 12, 2011 14:00
> > To: users@openjpa.apache.org
> > Subject: Re: Logging questions
> >
> > What do you have set for a configuration property? Have you
> > tried openjpa.Log=commons?
>
> <snip/>
>
>                <properties>
>            <property name="openjpa.DetachState"
> value="loaded(DetachedStateField=false)"/>
>                        <property name="openjpa.Log" value="commons"/>
>                        <!-- <property name="openjpa.Log"
> value="SQL=TRACE"/>
> -->
>                        <!-- <property name="openjpa.Log"
> value="DefaultLevel=TRACE"/> -->
>                        <!-- <property name="openjpa.Log" value="none"/> -->
>                        <property name="javax.persistence.jdbc.url"
> value="jdbc:oracle:thin:@localhost:1521/XE"/>
>                <property name="javax.persistence.jdbc.driver"
> value="oracle.jdbc.driver.OracleDriver"/>
>                <property name="javax.persistence.jdbc.user"
> value="fepldev_web"
> />
>                <property name="javax.persistence.jdbc.password"
> value="password" />
>                        <property name="openjpa.jdbc.EagerFetchMode"
> value="join" />
>                        <property name="openjpa.jdbc.SchemaFactory"
> value="native(ForeignKeys=true) " />
>        </properties>
>    </persistence-unit>
> </persistence>
>
>
> Also worth noting, it burps out at the very start:
>
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
> details.
> log4j:WARN No appenders could be found for logger (openjpa.Runtime).
> log4j:WARN Please initialize the log4j system properly.
>
> >
> > On Tue, Jul 12, 2011 at 12:48 PM, Jason Pyeron
> > <jp...@pdinc.us> wrote:
> >
> > > > -----Original Message-----
> > > > From: Rick Curtis [mailto:curtisr7@gmail.com]
> > > > Sent: Tuesday, July 12, 2011 12:22
> > > > To: users@openjpa.apache.org
> > > > Subject: Re: Logging questions
> > > >
> > > > Jason -
> > > >
> > > > Sorry about the slow reply, I must have missed this one somehow.
> > > >
> > > > > 1. Is it possible to (dynamically) change the logging
> > > > levels at runtime?
> > > > No, I don't believe so.
> > > >
> > > > > 2. Could someone elaborate more on the usage of
> > java.util.logging
> > > > > by
> > > > setting to value to "commons"?
> > > > What more are you looking for?
> > >
> > > Hmm.. It does not seem to use j.u.l for logging when set to
> > commons on
> > > Sun Java
> > > 1.6 64 bit.
> > >
> > > My formatter would output like:
> > >
> > > Jul 12, 2011 12:32:10 PM
> > org.apache.coyote.http11.Http11BaseProtocol
> > > init
> > > INFO: Initializing Coyote HTTP/1.1 on http-8080
> > >
> > > But I am getting interspersed [double CR added for clarity]:
> > >
> > > 3500  localhost  WARN   [main] openjpa.MetaData - Found
> > duplicate generator
> > > "seq" in "class
> > >
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.RecycledVoucherCheckFile".
> > > Ignoring.
> > >
> > >
> > > Jul 12, 2011 1:43:58 PM
> > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels setUp
> > > FINE: factory created
> > >
> > >
> > > 203  localhost  INFO   [main] openjpa.Runtime - Starting OpenJPA
> > > 2.1.0-SNAPSHOT
> > >
> > >
> > > 484  localhost  INFO   [main] openjpa.jdbc.JDBC - Using
> > dictionary class
> > > "org.apache.openjpa.jdbc.sql.OracleDictionary".
> > >
> > >
> > > Jul 12, 2011 1:44:07 PM
> > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels setUp
> > > FINE: em created
> > >
> > >
> > > Jul 12, 2011 1:44:07 PM
> > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels
> > > testListAllObjects
> > > INFO: class
> > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.AdditionalErrorInfo:
> > > before
> > >
> > >
> > > 14078  localhost  TRACE  [main] openjpa.jdbc.SQL - <t ...
> > >
> > >
> > >
> > >
> > >
> > > >
> > > > On Wed, Jun 29, 2011 at 3:55 PM, Jason Pyeron <jp...@pdinc.us>
> > > > wrote:
> > > >
> > > > > Using 2.1.x I have 2 questions I was unable to google for an
> > > > > answer after reading the manual.
> > > > >
> > > > > 1. Is it possible to (dynamically) change the logging
> > > > levels at runtime?
> > > > >
> > > > > 2. Could someone elaborate more on the usage of
> > > > java.util.logging by
> > > > > setting the value to "commons"?
> > > > >
> > > > > -Jason
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -                                                               -
> - Jason Pyeron                      PD Inc. http://www.pdinc.us -
> - Principal Consultant              10 West 24th Street #100    -
> - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
> -                                                               -
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> This message is copyright PD Inc, subject to license 20080407P00.
>
>
>
>

RE: Logging questions

Posted by Jason Pyeron <jp...@pdinc.us>.
> -----Original Message-----
> From: Rick Curtis [mailto:curtisr7@gmail.com] 
> Sent: Tuesday, July 12, 2011 14:00
> To: users@openjpa.apache.org
> Subject: Re: Logging questions
> 
> What do you have set for a configuration property? Have you 
> tried openjpa.Log=commons?

<snip/>

 		<properties>
            <property name="openjpa.DetachState"
value="loaded(DetachedStateField=false)"/>
			<property name="openjpa.Log" value="commons"/>
			<!-- <property name="openjpa.Log" value="SQL=TRACE"/>
--> 
			<!-- <property name="openjpa.Log"
value="DefaultLevel=TRACE"/> -->  
			<!-- <property name="openjpa.Log" value="none"/> -->
 			<property name="javax.persistence.jdbc.url"
value="jdbc:oracle:thin:@localhost:1521/XE"/>
      		<property name="javax.persistence.jdbc.driver"
value="oracle.jdbc.driver.OracleDriver"/>
      		<property name="javax.persistence.jdbc.user" value="fepldev_web"
/>
      		<property name="javax.persistence.jdbc.password"
value="password" />
			<property name="openjpa.jdbc.EagerFetchMode"
value="join" />
			<property name="openjpa.jdbc.SchemaFactory"
value="native(ForeignKeys=true) " />
        </properties>
    </persistence-unit>
</persistence>


Also worth noting, it burps out at the very start:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.
log4j:WARN No appenders could be found for logger (openjpa.Runtime).
log4j:WARN Please initialize the log4j system properly.

> 
> On Tue, Jul 12, 2011 at 12:48 PM, Jason Pyeron 
> <jp...@pdinc.us> wrote:
> 
> > > -----Original Message-----
> > > From: Rick Curtis [mailto:curtisr7@gmail.com]
> > > Sent: Tuesday, July 12, 2011 12:22
> > > To: users@openjpa.apache.org
> > > Subject: Re: Logging questions
> > >
> > > Jason -
> > >
> > > Sorry about the slow reply, I must have missed this one somehow.
> > >
> > > > 1. Is it possible to (dynamically) change the logging
> > > levels at runtime?
> > > No, I don't believe so.
> > >
> > > > 2. Could someone elaborate more on the usage of 
> java.util.logging 
> > > > by
> > > setting to value to "commons"?
> > > What more are you looking for?
> >
> > Hmm.. It does not seem to use j.u.l for logging when set to 
> commons on 
> > Sun Java
> > 1.6 64 bit.
> >
> > My formatter would output like:
> >
> > Jul 12, 2011 12:32:10 PM 
> org.apache.coyote.http11.Http11BaseProtocol 
> > init
> > INFO: Initializing Coyote HTTP/1.1 on http-8080
> >
> > But I am getting interspersed [double CR added for clarity]:
> >
> > 3500  localhost  WARN   [main] openjpa.MetaData - Found 
> duplicate generator
> > "seq" in "class
> > 
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.RecycledVoucherCheckFile".
> > Ignoring.
> >
> >
> > Jul 12, 2011 1:43:58 PM
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels setUp
> > FINE: factory created
> >
> >
> > 203  localhost  INFO   [main] openjpa.Runtime - Starting OpenJPA
> > 2.1.0-SNAPSHOT
> >
> >
> > 484  localhost  INFO   [main] openjpa.jdbc.JDBC - Using 
> dictionary class
> > "org.apache.openjpa.jdbc.sql.OracleDictionary".
> >
> >
> > Jul 12, 2011 1:44:07 PM
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels setUp
> > FINE: em created
> >
> >
> > Jul 12, 2011 1:44:07 PM
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels
> > testListAllObjects
> > INFO: class
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.AdditionalErrorInfo:
> > before
> >
> >
> > 14078  localhost  TRACE  [main] openjpa.jdbc.SQL - <t ...
> >
> >
> >
> >
> >
> > >
> > > On Wed, Jun 29, 2011 at 3:55 PM, Jason Pyeron <jp...@pdinc.us> 
> > > wrote:
> > >
> > > > Using 2.1.x I have 2 questions I was unable to google for an 
> > > > answer after reading the manual.
> > > >
> > > > 1. Is it possible to (dynamically) change the logging
> > > levels at runtime?
> > > >
> > > > 2. Could someone elaborate more on the usage of
> > > java.util.logging by
> > > > setting the value to "commons"?
> > > >
> > > > -Jason
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 


Re: Logging questions

Posted by Rick Curtis <cu...@gmail.com>.
What do you have set for a configuration property? Have you tried
openjpa.Log=commons?

On Tue, Jul 12, 2011 at 12:48 PM, Jason Pyeron <jp...@pdinc.us> wrote:

> > -----Original Message-----
> > From: Rick Curtis [mailto:curtisr7@gmail.com]
> > Sent: Tuesday, July 12, 2011 12:22
> > To: users@openjpa.apache.org
> > Subject: Re: Logging questions
> >
> > Jason -
> >
> > Sorry about the slow reply, I must have missed this one somehow.
> >
> > > 1. Is it possible to (dynamically) change the logging
> > levels at runtime?
> > No, I don't believe so.
> >
> > > 2. Could someone elaborate more on the usage of java.util.logging by
> > setting to value to "commons"?
> > What more are you looking for?
>
> Hmm.. It does not seem to use j.u.l for logging when set to commons on Sun
> Java
> 1.6 64 bit.
>
> My formatter would output like:
>
> Jul 12, 2011 12:32:10 PM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
>
> But I am getting interspersed [double CR added for clarity]:
>
> 3500  localhost  WARN   [main] openjpa.MetaData - Found duplicate generator
> "seq" in "class
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.RecycledVoucherCheckFile".
> Ignoring.
>
>
> Jul 12, 2011 1:43:58 PM
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels setUp
> FINE: factory created
>
>
> 203  localhost  INFO   [main] openjpa.Runtime - Starting OpenJPA
> 2.1.0-SNAPSHOT
>
>
> 484  localhost  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class
> "org.apache.openjpa.jdbc.sql.OracleDictionary".
>
>
> Jul 12, 2011 1:44:07 PM
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels setUp
> FINE: em created
>
>
> Jul 12, 2011 1:44:07 PM
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels
> testListAllObjects
> INFO: class
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.AdditionalErrorInfo:
> before
>
>
> 14078  localhost  TRACE  [main] openjpa.jdbc.SQL - <t ...
>
>
>
>
>
> >
> > On Wed, Jun 29, 2011 at 3:55 PM, Jason Pyeron
> > <jp...@pdinc.us> wrote:
> >
> > > Using 2.1.x I have 2 questions I was unable to google for an answer
> > > after reading the manual.
> > >
> > > 1. Is it possible to (dynamically) change the logging
> > levels at runtime?
> > >
> > > 2. Could someone elaborate more on the usage of
> > java.util.logging by
> > > setting the value to "commons"?
> > >
> > > -Jason
> > >
> > > --
> > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > > -                                                               -
> > > - Jason Pyeron                      PD Inc. http://www.pdinc.us -
> > > - Principal Consultant              10 West 24th Street #100    -
> > > - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
> > > -                                                               -
> > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > > This message is copyright PD Inc, subject to license 20080407P00.
> > >
> > >
> > >
> >
> >
> > --
> > *Rick Curtis*
> >
>
>
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -                                                               -
> - Jason Pyeron                      PD Inc. http://www.pdinc.us -
> - Principal Consultant              10 West 24th Street #100    -
> - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
> -                                                               -
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> This message is copyright PD Inc, subject to license 20080407P00.
>
>
>
>


-- 
*Rick Curtis*

RE: Logging questions

Posted by Jason Pyeron <jp...@pdinc.us>.
> -----Original Message-----
> From: Rick Curtis [mailto:curtisr7@gmail.com] 
> Sent: Tuesday, July 12, 2011 12:22
> To: users@openjpa.apache.org
> Subject: Re: Logging questions
> 
> Jason -
> 
> Sorry about the slow reply, I must have missed this one somehow.
> 
> > 1. Is it possible to (dynamically) change the logging 
> levels at runtime?
> No, I don't believe so.
> 
> > 2. Could someone elaborate more on the usage of java.util.logging by
> setting to value to "commons"?
> What more are you looking for?

Hmm.. It does not seem to use j.u.l for logging when set to commons on Sun Java
1.6 64 bit. 

My formatter would output like: 

Jul 12, 2011 12:32:10 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080

But I am getting interspersed [double CR added for clarity]:

3500  localhost  WARN   [main] openjpa.MetaData - Found duplicate generator
"seq" in "class
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.RecycledVoucherCheckFile".
Ignoring.


Jul 12, 2011 1:43:58 PM
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels setUp
FINE: factory created


203  localhost  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.1.0-SNAPSHOT


484  localhost  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class
"org.apache.openjpa.jdbc.sql.OracleDictionary".


Jul 12, 2011 1:44:07 PM
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels setUp
FINE: em created


Jul 12, 2011 1:44:07 PM
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.TestClaimModels testListAllObjects
INFO: class xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.AdditionalErrorInfo:
before


14078  localhost  TRACE  [main] openjpa.jdbc.SQL - <t ...





> 
> On Wed, Jun 29, 2011 at 3:55 PM, Jason Pyeron 
> <jp...@pdinc.us> wrote:
> 
> > Using 2.1.x I have 2 questions I was unable to google for an answer 
> > after reading the manual.
> >
> > 1. Is it possible to (dynamically) change the logging 
> levels at runtime?
> >
> > 2. Could someone elaborate more on the usage of 
> java.util.logging by 
> > setting the value to "commons"?
> >
> > -Jason
> >
> > --
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > -                                                               -
> > - Jason Pyeron                      PD Inc. http://www.pdinc.us -
> > - Principal Consultant              10 West 24th Street #100    -
> > - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
> > -                                                               -
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > This message is copyright PD Inc, subject to license 20080407P00.
> >
> >
> >
> 
> 
> --
> *Rick Curtis*
> 



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.