Re: Output-Stream for logging

2000-10-15 Thread Carlos Vasquez
Here is some sample code that you can play with. package com.guess.shop; //reference to the java, javax classes /// import java.io.*; import java.text.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; //reference to the cybersourc

Re: Output-Stream for logging

2000-10-13 Thread Ron Chan
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

Output-Stream for logging

2000-10-13 Thread Stefan Henke
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