Hi,
maybe this will work for you:
If you already have println everywhere, the simplest
is to pipe > it to a log.dat file. then use "tail -f
log.dat" to monitor the log.
ron
--- Stefan Henke <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to integrate a logfile into my webapp to
> write some info to (e.g. if
> an exception is thrown). I used a stream which
> should be stored in a file.
> I thought of opening a PrintWriter and add it to the
> session-objects.
> But I think this is no good idea because there is a
> multi-user access to the
> file and the streams is only written to the file if
> I close the stream.
>
> Does anybody has a better solution?
>
> Thanks
> Stefan
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets