tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albretch Mueller" <lbrt...@gmail.com>
Subject Re: Trying to use the "juli" Loggers within Tomcat
Date Fri, 02 Nov 2007 02:06:00 GMT
 where "foo" in:
~
> java.util.logging.Logger juliLogger = java.util.logging.Logger.getLogger("foo");
~
 is one the name of one of the loggers your defined in the
logging.properties file in the webapp right?
~
 Where could I find more detailed info on this?
~
 I stopped using TC some time ago and now I notice how much things
have changed ;-)
~
 Thanks
 lbrtchx
~
On 11/1/00, mgainty@hotmail.com <mgainty@hotmail.com> wrote:
> org.apache.logging.julbridge.MockAppender mockAppender = new
> org.apache.logging.julbridge.MockAppender();
> Logger.getRootLogger().addAppender(mockAppender);
> java.util.logging.Logger juliLogger =
> java.util.logging.Logger.getLogger("foo");
> juliLogger.info("boo");
>
>
> M--
> ----- Original Message -----
> Wrom: FPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRK
> To: <users@tomcat.apache.org>
> Sent: Thursday, November 01, 2007 8:09 PM
> Subject: Trying to use the "juli" Loggers within Tomcat
>
>
> > Hi,
> >  ~
> >   all I need is going like this from within a servlet
> >  ~
> >   Logger Lg = LoggerFactory.getLogger();
> >   Lg.log("blah");
> >  ~
> >   I am able to attach a logger to a webapp but I don't know how to use
> >  loggers to occassionally debug servlets and I couldn't find anything
> > when I searched for it
> >  ~
> >   How do you do that?
> >  ~
> >  Thanks
> >   lbrtchx
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message