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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "ConsoleAppender vs FileAppender" Watch "ConsoleAppender vs FileAppender" New topic
Author

ConsoleAppender vs FileAppender

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 980
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: 54
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: 980
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: 62756
    
  68

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 980
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: 62756
    
  68

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

Joined: Oct 14, 2005
Posts: 19553
    
  10

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: 980
Thanks for the responses!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ConsoleAppender vs FileAppender