wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes Adv & DisAdvantage of using Log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Adv & DisAdvantage of using Log4j" Watch "Adv & DisAdvantage of using Log4j" New topic
Author

Adv & DisAdvantage of using Log4j

Rajp al Singh
Greenhorn

Joined: Feb 23, 2007
Posts: 5
Can anybody expalain me the advantage & disadvantage of using log4j ?

Is there any disadvantage, if i kept the logging level at INFO & my application is printing large logs on each page response ? Will there be any delay in response time of each page ?

Guys, i need this info., Can anybody help me ?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10239
    
168

Hello "Rajp Sing"

Welcome to JavaRanch

We are glad to have you here. We have a naming policy at JavaRanch. Your displayed name must consist of a first name (or an initial), a space, and a family name (in that order) and not be obviously fictitious. Please take a moment to change it, which you can do right here.


[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10239
    
168

As for your question,

Is there any disadvantage, if i kept the logging level at INFO & my application is printing large logs on each page response ? Will there be any delay in response time of each page ?


Depends on how many log messages you are printing. Going by what you say, it looks like the messages are very verbose, in which case you should have logged them at DEBUG level. Applications in production, usually configure the log level to be INFO or higher. This reduces the amount of log messages and also to some extent (depending on how much you log) increases the performance of the application.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adv & DisAdvantage of using Log4j