Re: Formatting Apache+Tomcat Java stack output errors: how?

2001-06-18 Thread Sam Newman

Well, IIRC the stack outputs simply get sent to Stderr (e.g. when you do
excp.printStackTrace()). You could make stderr point to a different stream
(can do it via the System object) and then have that output stream do the
formatting. The exception reporting provided by Alphaworks JLog can
certainly do some decent formatting (by-the-by, Jlog is NOT log4j, although
they were both originally written by IBM). If you decide to use JLog, please
check the license - it may still be under one of IBM's dodgy ones, as it was
last time I looked (e.g. free to use, but if you use it in your code IBM can
ask for your source code. And believe me, they've done it in the past!).
Personally, I found JLog a little easier to use that Log4j (if less powerful
in some regards), and would still be using it now if not for the shitty
license :-(

sam
- Original Message -
From: "Michael 'Mickey' Sattler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 10:52 AM
Subject: Formatting Apache+Tomcat Java stack output errors: how?


> I apologize if this is covered somewhere, but I've spent the last few
> hours searching the Apache, Tomcat, and Java realms without success.
> There's just *too much* stuff out there :-|
>
> I want to tweak the Java stack output. Specifically, I'd like to (at
> a minimum) make the whole damn thing get word-wrapped so I can see
> everything without moving horizontally. If I could get tighter
> control over the main error line, etc., I'd do more formatting...
>
> Where is this controlled? Is there something which grabs all
> subshell-generated output, or is it more detailed as all that?
>
> Clueless and sleepy, I thank you for a helping hand...
>
> --
> Michael "Mickey" Sattler, Geek Times
<mailto:[EMAIL PROTECTED]>
> San Francisco, California, USA<http://www.GeekTimes.com/michael/>
>
> I was born not knowing and have had only a little time to change that here
> and there. -- Richard Feynman (1918 - 1988)
>




Formatting Apache+Tomcat Java stack output errors: how?

2001-06-18 Thread Michael 'Mickey' Sattler

I apologize if this is covered somewhere, but I've spent the last few 
hours searching the Apache, Tomcat, and Java realms without success. 
There's just *too much* stuff out there :-|

I want to tweak the Java stack output. Specifically, I'd like to (at 
a minimum) make the whole damn thing get word-wrapped so I can see 
everything without moving horizontally. If I could get tighter 
control over the main error line, etc., I'd do more formatting...

Where is this controlled? Is there something which grabs all 
subshell-generated output, or is it more detailed as all that?

Clueless and sleepy, I thank you for a helping hand...

-- 
Michael "Mickey" Sattler, Geek Times   
San Francisco, California, USA

I was born not knowing and have had only a little time to change that here
and there. -- Richard Feynman (1918 - 1988)