aspose file tools*
The moose likes Other Open Source Projects and the fly likes System.out.println VS log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "System.out.println VS log4j" Watch "System.out.println VS log4j" New topic
Author

System.out.println VS log4j

Ritesh Agrawal
Ranch Hand

Joined: Jan 08, 2004
Posts: 74
Hi,

Can you please direct me to some article which discusses the performance comparison between using System.out.println and using log4j to write log outputs.

Thanks


Ritesh<br /> <br />SCJP 1.4<br />IBM Test 340<br />IBM AIX V4.0 Certified Professional<br /> <br />Right actions for the future are the best apologies for wrong ones in the past.<br />- Tyron Edwards
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8997
    
    9

You should be pleased to know that when configured with the SimpleLayout performance tests have shown log4j to log as quickly as System.out.println.


Apache Log4j 1.2 Short Introduction


[How To Ask Questions On JavaRanch]
Ritesh Agrawal
Ranch Hand

Joined: Jan 08, 2004
Posts: 74
Thanks. We are using log4j because on stress testing our application, we found that System.out.println is about the same as using log4j in async mode.

Appreicate your time and effort.
 
Consider Paul's rocket mass heater.
 
subject: System.out.println VS log4j