You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Phil Warrick <ph...@mcgill.ca> on 2003/03/26 06:12:19 UTC

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


Re: log4j with jBoss

Posted by Dave Derry <dd...@acm.org>.
I'll be happy to send the settings that I use. But it will have to wait till
Monday when I get back to the office. Off hand tho' this does look correct.
With the addition of Categories to the JBoss log4j.xml you should see log
entries in the JBoss server.log (by default).


----- Original Message -----
From: "Phil Warrick" <ph...@mcgill.ca>
To: "OJB Users List" <oj...@db.apache.org>
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"
>  > <ph...@mcgill.ca> To: "OJB Users List"
>  > <oj...@db.apache.org> 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: ojb-user-unsubscribe@db.apache.org For
>  >> additional commands, e-mail: ojb-user-help@db.apache.org
>  >>
>  >>
>  >
>  >
>  >
>  > ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org For
>  > additional commands, e-mail: ojb-user-help@db.apache.org
>  >
>
>
> o
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>


Re: log4j with jBoss

Posted by Phil Warrick <ph...@mcgill.ca>.
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"
 > <ph...@mcgill.ca> To: "OJB Users List"
 > <oj...@db.apache.org> 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: ojb-user-unsubscribe@db.apache.org For
 >> additional commands, e-mail: ojb-user-help@db.apache.org
 >>
 >>
 >
 >
 >
 > ---------------------------------------------------------------------
 >  To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org For
 > additional commands, e-mail: ojb-user-help@db.apache.org
 >


o


Re: log4j with jBoss

Posted by Dave Derry <dd...@acm.org>.
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" <ph...@mcgill.ca>
To: "OJB Users List" <oj...@db.apache.org>
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: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>