File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply 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: 8259

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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.
 
 
subject: System.out.println VS log4j
 
Similar Threads
Where is the log message written?
how to map log4j in run.sh
RSSutils.jar file
How?
Subtle, subtle, little Log4j difficulty