This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 9924
    
158

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: 9924
    
158

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Adv & DisAdvantage of using Log4j
 
Similar Threads
Java Page Flow VS any other Framework
Adv & DisAdvantage of using Log4j
XML v/s customtags
Doubt in request.setAttribute ("ListBean", userList);
application is not currently available -error