"Patric Bechtel" <[EMAIL PROTECTED]> wrote on 31/03/2002 12:12:39 AM:

> On Sun, 31 Mar 2002 00:09:31 +1000, [EMAIL PROTECTED] wrote:
> 
> Hallo dion,
> 
> there IS a need to chunk lines, as some IDE's try to register itself
> on the log events, which should have one line after another.
> Your approach to simply flush the stream into the log is not so
> nice for their approach. What about the folks which don't use
> simple command lines, but Swing gui's, which try to color each
> line depending on it's severity?
Sounds like a good reason to me :)

> Ok, let's take a look on this:
> 
> -                    log(lb.toString(), Project.MSG_ERR);
> +                    if (lb.indexOf("Error")!=-1) {
> +                        log(lb.toString(), Project.MSG_ERR);
> +                    } else if (lb.indexOf("Warning")!=-1) {
> +                        log(lb.toString(), Project.MSG_WARN);
> +                    } else {
> +                        log(lb.toString(), Project.MSG_INFO);
> +                    }
> 
> Now there would be a nice colored output when compact="true" is set,
> line by line, each with it's own severity.
> Also, the adornments are visible on each line, which is also important
> for matchers, which rely on that.
> 
> What do you think?
Even better.

--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to