Hi,
        Over at FOP, several (4) users have recently raised concerns with
FOP's adoption of Avalon and LogKit. The most valid complaint is by those
who had embedded FOP into applications that use Log4J and now have two
different logs. I remember the proposal to make a single Avalon interface
that either Log4J or LogKit could be plugged into interchangeably, but now
that Avalon 4.0 final is out, I wanted to raise the issue again. Also,
there's an alternative approach to the proposal that might have some good
ideas:
http://www.openinstitute.org/trunk/

-Steve

On Thu, 13 Sep 2001 22:40:13 -0400 Christopher Burkey wrote:
> At our company we have have found a solution to the logging dilemma and 
> think FOP should do the same.
> 
> At this point there seems to be several ways to log errors within a Java 
> application:
> 
> 1. JDK 1.4's new Logging API's
> 2. Log4J
> 3. Log Kit
> 4. Avalon's Loggable interface
> 5. Some new JDK compatible API's
> 
> The worst part about this situation is that one component might use Log4J 
> and another part of the same application may depend on Log Kit. So now
your 
> logs are spread all over the place within the same application.( Our 
> company is writing a Swing application that had this exact problem. )
> 
> The solution is:
> 
> Logging should be done in the same way JDBC is done. There should be one 
> set of interfaces and multiple drivers. Log Kit and Log4J considered the 
> equivalent of JDBC drivers such as Oracle, DB2 etc...
> 
> We put together Trunk ( http://www.openinstitute.org/trunk/ ) as a 
> collection of Interfaces compatible with multiple drivers.
> 
>  From the Trunk Docs:
> 
> LoggingDriver.getDriver()
>        *   <li>Get the value of the 
> <tt>org.openinstitute.trunk.LoggingDriver</tt> system property,
>        *     which must be a class that implements the {@link
LoggingDriver} 
> interface.
> 
> Example Usage:        
> 
> Logger LOGGER = LoggingDriverFactory.getDriver().getLogger( 
> SomeApplication.class );
>         LOGGER.info("Hello world!");
> 
> Now FOP can use any driver such as Log4J or Log Kit.
> 
> 
> 
> 
> ________________________________________________
> Christopher Burkey            [EMAIL PROTECTED] 
> President                     513-542-3401
> eInnovation Inc.              http://einnovation.com
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

Freundliche Grüsse
OUTLINE AG
Jeremias Märki

mailto:[EMAIL PROTECTED]

Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to