Hi everybody,
 
I recently started using this class to create my custom log for my servlets on Tomcat 
3.2, but I think I didn't understand the correct usage.The only document I discovered 
was the javadoc HTML, so I write to this forum to get some more informations.I 
extended the TomcatLogger to obtain a more useful logXX method, to provide immediate 
flushing on the writer. Trying to call flush() direclty was not a good idea, because 
it generated a lot of threads exausting rapidly my system resources. I browse into the 
source and I see that in fact, flush() create and run a new thread(), but I didn't 
understand why. So I made it simpler, calling flush() on the sink member direclty. It 
works but I don't kwow if this is a correct usage of the logger. Another question: 
Does TomcatLogger provide a way to configure a logger instance completely at deploy 
time, with minimal code writing? 
 
Thank you in advance 
 
Giorgio Saviane
http://www.prosa.com

Reply via email to