You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by NIVET Rémi <re...@atosorigin.com> on 2002/02/28 09:55:35 UTC
RE: org.apache.catalina.logger.SystemOutLogger
Hi all
I think I've got the answer to your question.
The fact is that you've got three different loggers : FileLogger,
SystemErrLogger and SystemOutLogger. If you read carefully the doc,
you'll see that you can't specify any file name for the Systeme's
loggers. So if you specify a FileLogger for a <host>, all logs will be
redirected to the file you defined for this logger but if you specify a
SystemLogger all logs will be redirected to the standard error/out
stream.
Hope this help,
Rémi.
le jeu 28-02-2002 à 01:55, Craig R. McClanahan a écrit :
>
>
> On Wed, 27 Feb 2002, Kranthi Meka wrote:
>
> > Date: Wed, 27 Feb 2002 16:20:42 -0800
> > From: Kranthi Meka <km...@once.com>
> > Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> > To: 'Tomcat Users List' <to...@jakarta.apache.org>
> > Subject: RE: org.apache.catalina.logger.SystemOutLogger
> >
> > Craig,
> >
> > I mean if we can NOT have seperate sytem out logs per application, then what
> > is SystemOutLogger usage ?
> > The tomcat documents says that using this we can seperate system outs.
> >
>
> Can you please point me to where you read this? If that's what it really
> says, then it is not accurate.
>
> > Thx,
> > Kranthi.
> >
>
> Craig
>
>
> > -----Original Message-----
> > From: Kranthi Meka [mailto:kmeka@once.com]
> > Sent: Wednesday, February 27, 2002 4:19 PM
> > To: 'Tomcat Users List'
> > Subject: RE: org.apache.catalina.logger.SystemOutLogger
> >
> >
> > Hi Craig,
> >
> > If we can have seperate Sysytem out logs then what is the functionality of
> > SystemOutLogger ?
> >
> > Further, Even if I remove FileLogger, SystemErrLogger and just have
> > SystemOutLogger defined in my application context, the system out log is not
> > generated.
> >
> > Thanks,
> > Kranthi.
> >
> >
> >
> > -----Original Message-----
> > From: Craig R. McClanahan [mailto:craigmcc@apache.org]
> > Sent: Wednesday, February 27, 2002 4:13 PM
> > To: Tomcat Users List
> > Subject: Re: org.apache.catalina.logger.SystemOutLogger
> >
> >
> > On Wed, 27 Feb 2002, Craig R. McClanahan wrote:
> >
> > > Date: Wed, 27 Feb 2002 16:08:51 -0800 (PST)
> > > From: Craig R. McClanahan <cr...@apache.org>
> > > Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> > > To: Tomcat Users List <to...@jakarta.apache.org>
> > > Subject: Re: org.apache.catalina.logger.SystemOutLogger
> > >
> > >
> > >
> > > On Wed, 27 Feb 2002, Kranthi Meka wrote:
> > >
> > > >
> > > > I am using the below setting in my application context inside
> > server.xml.
> > > >
> > > > <!-- Tomcat EADMIN Context -->
> > > > <Context path="/eadmin" docBase="/usr/local/webapps/eadmin"
> > > > debug="0"
> > > > reloadable="true">
> > > > <Logger className="org.apache.catalina.logger.FileLogger"
> > > > prefix="eadmin_file_log." suffix=".txt"
> > > > timestamp="true"/>
> > > > <Logger className="org.apache.catalina.logger.SystemErrLogger"
> > > > prefix="eadmin_syserr_log." suffix=".txt"
> > > > timestamp="true"/>
> > > > <Logger className="org.apache.catalina.logger.SystemOutLogger"
> > > > prefix="eadmin_sysout_log." suffix=".txt"
> > > > timestamp="true"/>
> > > > </Context>
> > > >
> > > > FileLogger work fine, but SystemErrLogger, SystemOutLogger are not being
> > > > generated.
> > > > The Systemouts, errors are still going to catalina.out.
> > > >
> > >
> >
> > One thing I forgot to note in this -- there is exactly one logger per
> > <Context>, <Host>, or <Engine> element (last one wins). So, trying to use
> > the content quoted above means that the only <Logger> enabled would be the
> > SystemOutLogger.
> >
> > > > Kranthi.
> > > >
> > >
> > > Craig
> >
> >
> >
> > --
> > To unsubscribe: <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
> >
> > --
> > To unsubscribe: <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
> >
> > --
> > To unsubscribe: <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>