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
posted
0
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
posted
0
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
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.