commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wim Deblauwe <wim.debla...@gmail.com>
Subject Re: [commons-logging] redirect stdout and stderr
Date Wed, 09 Nov 2005 18:42:41 GMT
I'm afraid that is the reverse of what I'm looking for. I don't want my
logging to go to stderr, instead I want the stderr output to go to whatever
log system I have configured in commons-logging.

regards,

Wim

2005/11/9, Martin van den Bemt <mllist@mvdb.net>:
>
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message