Hi Sanjay, You might have enabled the additivty flag to true and have referred the destination both in root and your category in your config. file. Either diable additivity or remove the appender from the category.
You could find a link to article "Dont use system.out.println" in log4j homepage. Its a very good one for starters... Hope this helps. Regards Sridhar -----Original Message----- From: Sanjay Bahal [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 8:20 PM To: [EMAIL PROTECTED] Subject: Double Logs Hi, I just started using log4j. I have set a basic logger and I have configured it with- BasicConfigurator.configure(); I have some questions: 1. All my logs are geting printed 2 times. How to avoid this. 2. The logs are getting printed in format: 80 [Thread-2] DEBUG dialer - SocketConnection.readBuffer:len=232. Is there a way to print only the msg? 3. What is the statement: BasicConfigurator.configure() doing? Which logger is getting configured? Thanks Sanjay __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>