Hi Phil,

As you showed, we are specifying the Log4jLoggerImpl in OJB.properties. In
jboss/server/default/conf/log4j.xml I have (among others):

  <category name="org.apache.ojb">
     <priority value="ERROR" />
  </category>
  <category name="org.apache.ojb.broker.accesslayer">
     <priority value="DEBUG" />
  </category>
  <category name="org.apache.ojb.broker.accesslayer.RsIterator">
     <priority value="ERROR" />
  </category>
  <category name="org.apache.ojb.broker.metadata.RepositoryXmlHandler">
     <priority value="DEBUG" />
  </category>
  <category name="org.apache.ojb.broker.singlevm.PersistenceBrokerImpl">
     <priority value="ERROR" />
  </category>


I adjust these as necessary. the output is written to
jboss/server/default/log/server.log by default.

Hope that this helps,
Dave Derry


----- Forwarded by Dave Derry/Technology/Equifax on 03/31/2003 08:47 AM
-----
                                                                                       
                                          
                      "Dave Derry"                                                     
                                          
                      <[EMAIL PROTECTED]>         To:      <[EMAIL PROTECTED]>         
                                        
                                               cc:                                     
                                          
                      03/29/2003 09:05         Subject: Fw: log4j with jBoss           
                                          
                      AM                                                               
                                          
                      Please respond                                                   
                                          
                      to "Dave Derry"                                                  
                                          
                                                                                       
                                          
                                                                                       
                                          




----- Original Message -----
From: "Phil Warrick" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 11:41 PM
Subject: Re: log4j with jBoss


> Hi Dave,
>
> These settings in log4j.xml don't seem to be having an effect.  Could
> you tell me what are your relevant log4j.xml and OJB.properties file
> settings (or send entire file as attachment?).  My OJB.properties
> settings are as follows (Is the LoggerConfigFile entry used/not used?)
>
>
#---------------------------------------------------------------------------

-------------
> # Logging
>
#---------------------------------------------------------------------------

-------------
> # The LoggerClass entry tells OJB which concrete Logger
> # implementation is to be used.
> #
> # Commons-logging
> #LoggerClass=org.apache.ojb.broker.util.logging.CommonsLoggerImpl
> # log4j based logging
> LoggerClass=org.apache.ojb.broker.util.logging.Log4jLoggerImpl
> # OJB's own simple looging support
> #LoggerClass=org.apache.ojb.broker.util.logging.PoorMansLoggerImpl
> LoggerConfigFile=log4j.properties
>
>
> Thanks,
>
> Phil
>
> Dave Derry wrote:
>  > Check in the conf directory of the server that you are using (we use
>  > 'default'). You'll find a log4j.xml file there. Just add the entries
>  > that you want, and bounce JBoss.
>  >
>  >
>  > ----- Original Message ----- From: "Phil Warrick"
>  > <[EMAIL PROTECTED]> To: "OJB Users List"
>  > <[EMAIL PROTECTED]> Sent: Wednesday, March 26, 2003 12:12 AM
>  > Subject: log4j with jBoss
>  >
>  >
>  >
>  >> Hi,
>  >>
>  >> Can someone tell me if there's something special to do to get OJB
>  >> logging to log4j within jBoss.  OJB log4j logging works fine for me
>  >>  standalone.
>  >>
>  >> Thanks,
>  >>
>  >> Phil
>  >>
>  >>
>  >> ---------------------------------------------------------------------
>  >>  To unsubscribe, e-mail: [EMAIL PROTECTED] For
>  >> additional commands, e-mail: [EMAIL PROTECTED]
>  >>
>  >>
>  >
>  >
>  >
>  > ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: [EMAIL PROTECTED] For
>  > additional commands, e-mail: [EMAIL PROTECTED]
>  >
>
>
> o
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





This message contains information from Equifax Inc. which may be
confidential and privileged.  If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this
information and note that such actions are prohibited.  If you have
received this transmission in error, please notify by e-mail
[EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to