aspose file tools
The moose likes Other Open Source Projects and the fly likes ConsoleAppender vs FileAppender Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "ConsoleAppender vs FileAppender" Watch "ConsoleAppender vs FileAppender" New topic
Author

ConsoleAppender vs FileAppender

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Hi All,

Between Console appender and a file appender that is used for logging in application in production env,which is the better???

Regards
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

That depends on whether or not you want to log to the console or a file, really.
dharmendra gahlot
Ranch Hand

Joined: Apr 22, 2009
Posts: 52
It depends upon requirement. Console appender shows logging information on console and FileAppender writes it into logging file.
FileAppender's logging files are good for future reference.


Dharmendra Gahlot
SCJP-5.0 87%,SCWCD-5.0 92%
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Thanks for the replies but my question is from a performance point of view, which is better of the two...if am logging the same set of statements across the appln
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56179
    
  13

What did your performance testing show was the difference between the tow?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
I havent done any testing but this is only a query from my end. would there be any potential performance diff between the two...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56179
    
  13

Well then, I guess you know what the next thing you should do is.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

Performance? That's really an odd question. Since they don't do anywhere near the same thing, there wouldn't be any reason to choose between them based on performance.

But if it's just a theoretical question, with no practical meaning at all, then sure, go ahead, measure away.
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Thanks for the responses!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ConsoleAppender vs FileAppender
 
Similar Threads
Save QueryString as String ?
log4j:Appender
log4j problem
how to know the location of log file set in log4jproperty file
Struck thread and deadlock while getting connection