🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16991

Re: Simple way to save exception stack trace to disk?

#16991
From: Colin Cooper
Date: Wed, 23 Dec 1998 00:00
21 lines
1221 bytes
Michael,

First, construct a PrintStream connected to the file you want to use.

Second, either 
	System.setErr(PrintStream) -- once at startup, 
or,
	always use error.printStackTrace(yourPrintStream)

  Regards,
  Colin Cooper


Michael Appelmans wrote:
> 
> Does anyone have a simple (elegant?) way to save an
> exception.printStackTrace to a disk file? Since runtime Javaw does not
> have a console I wan't to make sure I don't miss bugs my customers
> find.
> 
> Thanks.
Technical Details
Message-ID: <368039ED.66FBF708@summon.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <75oh2g$ahi14@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,631a9e2e4da13e90
X-Google-Attributes: gidf74b3,public
From: Colin Cooper <colin@summon.demon.co.uk>
Subject: Re: Simple way to save exception stack trace to disk?
Date: 1998/12/23
Message-ID: <368039ED.66FBF708@summon.demon.co.uk>
X-Deja-AN: 425017946
Content-Transfer-Encoding: 7bit
X-NNTP-Posting-Host: summon.demon.co.uk:158.152.89.126
References: <75oh2g$ahi14@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 914373080 nnrp-07:25887 NO-IDENT summon.demon.co.uk:158.152.89.126
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language