This is interesting. You may also be interested in AspectJ (www.aspectj.org). For more context on "aspects" (which sound similar to what Michael is calling "services"), please visit http://www.technologyreview.com/articles/jan01/TR10_kiczales.html.
-Craig Randall
-----Original Message-----
From: Schachter, Michael [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 5:22 PM
To: '[EMAIL PROTECTED] '
Subject: RE: Logging capability in Struts
For things such as logging, it would be a good idea to implement them as an
application level service. Application level services are a concept of
Larry McCay ([EMAIL PROTECTED]). Basically "Services" is interface based
programming for common horizontal services such as logging, object pooling,
etc. For logging there could be a homegrown implementation at first, then
when logging is standardized we could switch the implementation underneath
to use the new mechanism. Also, you could create a Log4j implementation
that uses IBM's logging package if you felt like it. We're holding off on a
full blown introduction until 1.0 is out, so please bear with us.
-----Original Message-----
From: Wong Kok Wai
To: [EMAIL PROTECTED]
Sent: 1/5/01 8:01 PM
Subject: Re: Logging capability in Struts
FYI, the logging API for Java will only be available in JDK 1.4.
-----Original Message-----
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 05, 2001 3:08 PM
To: [EMAIL PROTECTED]
Subject: Re: Logging capability in Struts
Roger Kjensrud wrote:
> Hello,
>
> I've noticed that there is some logging capability inherent in the Struts
> framework. However, I wonder if anyone has some experience using some of the
> logging/trace packages (e.g., log4j or Jlog) with Struts, and what pros/cons
> there are using the log capability within Struts compared to an external
> package?
>
Currently, the only logging Struts does is via ServletContext.log() -- which any
servlet can use -- and the log messages go to wherever they are configured for
in your servlet container. You could certainly use something like log4j
yourself.
There has been some discussion of adding a generic Struts logging capability.
However, there is currently a Java Community Process JSR to develop a standard
logging API for Java (which I understand will likely be somewhat similar to
things like LOG4J), so it seems better to wait until that effort is completed.
>
> Thank you very much,
>
> Roger Kjensrud
Craig McClanahan