• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

System.out.println VS log4j

 
Ritesh Agrawal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Joe Ess
Bartender
Pie
Posts: 9266
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ritesh Agrawal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic