dcsimg
log4j : How to avoid duplicate logmessages in a multithreaded application?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Chowdary_Davuluri
Posted On:   Wednesday, January 30, 2008 04:06 AM

Hi, I m using log4j for my heavily multithreaded JAVA application. After my application comes up, a few minutes later , I find many duplicate logger messages on the console(only logger messages in threads are being displayed 8-9 times each). Is it that my application being multithreaded or is there something wrong with my configuration file? My log4j-config.xml is as below:- <?xml version="1.0" encoding="UTF-8"?> configDebug="true"> value="%d %-5p [%t] %C %A (%F:%L) - %m%n"/--> value="%   More>>

Hi,
I m using log4j for my heavily multithreaded JAVA application. After my application comes up, a few minutes later , I find many duplicate logger messages on the console(only logger messages in threads are being displayed 8-9 times each). Is it that my application being multithreaded or is there something wrong with my configuration file?

My log4j-config.xml is as below:-

			
<?xml version="1.0" encoding="UTF-8"?>



configDebug="true">
























value="%d %-5p [%t] %C (%F:%L) - %m%n"/>








value="%d %-5p [%t] %C (%F:%L) - %m%n"/>








value="%d %-5p [%t] %C (%F:%L) - %m%n"/>







value="%d %-5p [%t] %C (%F:%L) - %m%n"/>













value="%d %-5p [%t] %C (%F:%L) - %m%n"/>












value="%d %-5p [%t] %C (%F:%L) - %m%n"/>












value="%d %-5p [%t] %C (%F:%L) - %m%n"/>












value="%d %-5p [%t] %C (%F:%L) - %m%n"/>
















Regards.    <<Less
About | Sitemap | Contact