Forums Register Login

ConsoleAppender vs FileAppender

+Pie Number of slices to send: Send
Hi All,

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

Regards
+Pie Number of slices to send: Send
That depends on whether or not you want to log to the console or a file, really.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
What did your performance testing show was the difference between the tow?
+Pie Number of slices to send: Send
I havent done any testing but this is only a query from my end. would there be any potential performance diff between the two...
+Pie Number of slices to send: Send
Well then, I guess you know what the next thing you should do is.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Thanks for the responses!!!
I can't beleive you just said that. Now I need to calm down with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 4479 times.
Similar Threads
Save QueryString as String ?
log4j:Appender
how to know the location of log file set in log4jproperty file
Struck thread and deadlock while getting connection
log4j problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:21:04.