[slf4j-dev] [Bug 110] Create a bridge between System.out/System.err and SLF4J

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Tue Apr 21 21:01:34 CEST 2009


http://bugzilla.slf4j.org/show_bug.cgi?id=110





--- Comment #5 from Robert Elliot <robert at teviotia.co.uk>  2009-04-21 21:01:33 ---
(In reply to comment #4)
> Unfortunately, you have to wait for a new log statement to determine the end of
> the throwable which introduces a new latency, which may be deemed unacceptable.
> In particular, if the last exception exception kills the application in which
> case there will be no new log statements. 

That was why I rejected that approach - it seems to me that exceptions are the
one thing you really don't want to swallow accidentally or attach incorrect
timestamps to if nothing prints to the console for a significant period.

There's another less significant issue with it too - the contract of
Throwable.printStacktrace says that the format of the printed stack trace
depends on the implementation, so theoretically another Java implementer could
output the trace in a format that would break this.  I'm less bothered about
that, it's not like there are that many implementations out there and I'd
hazard a guess they all copy Sun's format.


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the slf4j-dev mailing list