commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wim Deblauwe <wim.debla...@gmail.com>
Subject [commons-logging] redirect stdout and stderr
Date Wed, 09 Nov 2005 07:50:25 GMT
Hi,

How can I redirect stdout and stderr to commons-logging? When a
NullPointerException occurs, I want this to be in my log file. How can I do
this. I know I can do this with log4j by using LoggingOutputStream (See
http://cvs.apache.org/viewcvs.cgi/jakarta-log4j/contribs/JimMoore/LoggingOutputStream.java?view=markup).
Is there a way to do this without directly depending on log4j?

regards,

Wim

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message