commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin van den Bemt <mll...@mvdb.net>
Subject Re: [commons-logging] redirect stdout and stderr
Date Wed, 09 Nov 2005 18:32:45 GMT
Use SimpleLog (which is in the commons-logging codebase).
See http://jakarta.apache.org/commons/logging/commons-logging-1.0.4/docs/guide.html#Configuration
Though the javadoc doesn't seem to be online / in the place where the site is pointing too..


Mvgr,
Martin

Wim Deblauwe wrote:
> 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
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message