Hi Dirk. Take a look at log4j (http://jakarta.apache.org/log4j). It's exceptionally easy to use - fewer keystrokes than System.out.println - and you can leave it in your code when you're done.
You can log to a file and tail the file, or log to System.{out,err}, or even to a socket if you like. I don't remember the last time I typed System.out! (Apart from just then...). Cheers, Dan/tastapod > -----Original Message----- > From: Zoettl, Dirk [mailto:[EMAIL PROTECTED]] > Sent: 24 October 2001 12:42 > To: '[EMAIL PROTECTED]' > Subject: RE: [Eap-list] Lots of program output grinds IDEA > > > +1, > > System.out and System.err are the easiest way to write logs, > and some times I want to be able to keep a server application > running in the debugger for a whole day. > > Dirk Zöttl > _______________________________________________________________ > > -----Original Message----- > From: Gerrit Van Niekerk > [mailto:[EMAIL PROTECTED]] > Sent: Mittwoch, 24. Oktober 2001 13:18 > To: '[EMAIL PROTECTED]' > Subject: [Eap-list] Lots of program output grinds IDEA > > > When a program run from IDEA writes a lot to System.out, IDEA > takes a very > long to display it all, hanging in the meantime, uses all CPU > power and LOTS > of memory. IDEA must be buffering the data, because after my program > terminates (as seen from taskmanager) it still takes a LONG > time to get > itself together again, if ever. > > The following program demonstrates the problem: > > public class TestOut { > public static void main(String s[]) { > for (int i = 0; i < 10000; i++) > System.out.println("Lets overload > outputstream "+i); > } > } > // not a very big deal! ;-) > > I suggest that you either: > 1. Limit the size of the buffer that read the program's output (eg. > ringbuffer) > 2. Add option in "Run/debug conf..." that redirects output to a file - > probably the easiest! > > I'm using #508 (though the 'bug' is not new), win2k, 650 MHz, 256M. > > > > ------------------------------------------------------------ > IMPORTANT NOTICE. > > Confidentiality: This e-mail and its attachments are intended for > the above named only and may be confidential. If they have come to > you in error you must take no action based on them, nor must you copy > or show them to anyone; please reply to this e-mail and highlight the > error. > > Security Warning: Please note that this e-mail has been created in > the knowledge that Internet e-mail is not a 100% secure > communications > medium. We advise that you understand and observe this lack of > security when e-mailing us. > > Viruses: Although we have taken steps to ensure that this e-mail and > attachments are free from any virus, we advise that in keeping with > good computing practice the recipient should ensure they are actually > virus free. > > Monitoring and Scanning: CeNeS has monitoring and scanning systems > in place in relation to emails sent and received to: monitor / record > business communications; prevent and detect crime; investigate the > use of the Company's internal and external email system; and provide > evidence of compliance with business practices. > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list > *************************************************************************************** This email and any files transmitted with it are confidential and intendeds olely for the use of the individual or entity to whom they are addressed.I f you have received this email in error please notify [EMAIL PROTECTED] immediately. This footnote also confirms that this email message has been swept for thep resence of computer viruses. *************************************************************************************** _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list