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?
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?
Patric
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>