Thanks For the tip, I am what one might call a newbee to this I was naming my loggers in my log4j.xml and setting their attributes. I then referenced these logger names in my code
Should I actually create each logger as a java class and reference this in my code? Many thanks Joe -----Original Message----- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 21 January 2004 18:02 To: Log4J Users List Subject: RE: log4j.xml Howdy, You want log4j.xml on the classpath for automatic initialization? If so, server/lib is not good, as only jars from there get added. Is there a server/classes directory? If so, put log4j.xml there. As an aside, your code snippet could look better: import the Logger class, don't use the FQCN in the code, call the member netMaintLogger rather than NetMaintLogger, and make it static and final. All those are small suggestions, obviously it's your code and your style ;) Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Joe Collins [mailto:[EMAIL PROTECTED] >Sent: Wednesday, January 21, 2004 12:59 PM >To: [EMAIL PROTECTED] >Subject: log4j.xml > >Hi , > >I have a log4j.xml file written which declares a root logger and a >number of other loggers / appenders in a hierarchy >In my code I have called a logger called NetMaintLogger as below. > > > org.apache.log4j.Logger NetMaintLogger = >org.apache.log4j.Logger.getLogger("NetMaintLogger") ; > NetMaintLogger.debug("ShowSiteSearchAction.execute called >logger"); > >I have the log4j jar file in my classpath for the server, I have my >log4j.xml located in the bea\weblogic81\server\lib directory. I am using >weblogic 8.1. > >Where should my log4j.xml be located i.e. how is it referenced? > >Is there any issues with configuring the log4j.xml file in weblogic 8.1? > >Any help, however small would be greatly appreciated > >Joe --------------------------------------------------------------------- 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]
