File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "System.out.println VS log4j" Watch "System.out.println VS log4j" New topic

System.out.println VS log4j

Ritesh Agrawal
Ranch Hand

Joined: Jan 08, 2004
Posts: 74

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.


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

Joined: Oct 29, 2001
Posts: 9102

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.
I agree. Here's the link:
subject: System.out.println VS log4j