tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jon * <>
Subject Re: log4g... IBM O.S license vs Apache license.
Date Wed, 19 Jan 2000 21:37:11 GMT
on 1/19/00 3:30 AM, Stefano Mazzocchi <> wrote:

> Say Tomcat needs logging, then asks for a "logger" that implements the
> "Logger" interface. Avalon knows that this particular setup implements
> Logger with a glue class that connects to log4j.
> If you want to change the logger implementation due to legal issues or
> technological details, you simply configure avalon to give a different
> Logger implementation. This is the power of OO polymorphism and it's
> exactly what Jon is suggesting.
> In fact, and this is the very reason why Avalon was created, each
> project has a logging subsystem, but if you "connect" it strongly to the
> server, your bound for life.
> Avalon gives you the component model and the framework to handle this.


Turbine also has something fairly similar, but probably not as well defined,
called "Services". Everything is implemented as singleton so that you can
simply ask for the "logging" service and you get a reference to that object.
Very cool way of extending things.


Come to the first official Apache Software Foundation
Conference!  <http://ApacheCon.Com/>

View raw message