On Thu, Nov 21, 2002 at 07:50:11AM +0530, Anuradha D Dodda wrote: > Hi, > I want to know how do I configure categories in my log4j.properties > to get all OJB logging by using Log4JLogging of OJB. > > Can anyone who already used help me out with this?.. > > I understood that it expects me to put in so many categories in > log4j.properties file..since each class is a category there. > > Is there a way to configure log4j.prop with one category for all OJB > logging?
Each package is a category, too, so you can write log4j.logger.org.apache.ojb=<loglevel> to set the loglevel for all ojb classes except those you specify explicitly by giving them (or a subpackage of org.apache.ojb) an own loglevel: log4j.logger.org.apache.ojb.broker=<loglevel2> would 'overwrite' the loglevel you set above for the broker package. hth, Jens -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>