cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berin Loritsch" <blorit...@infoplanning.com>
Subject Deeper Avalon Integration
Date Fri, 10 Nov 2000 22:47:39 GMT
As an FYI, The Avalon logging mechanism and Command Line
Interpreter utilities are now integrated with Cocoon.

If you create a new class, and need access to the Cocoon
Logger, then you only have to do this:

import org.apache.log.Logger;
import org.apache.log.LogKit;

class MyClass {
    protected Logger log = LogKit.getLoggerFor("cocoon");

    public void myMethod() {
        log.info("Information");
        log.debug("Debug info");
        log.warn("Warning");
        log.error("Error");
        log.fatalError("Fatal Error");
    }
}

Note that each type of log signature will also accept a
Throwable as a second parameter.

At this time fatalError does not automatically shut down
the program.  That is a point of further development with
the Logger.

---------------------------------------
If you lust for Ham and Eggs, you have
committed breakfast in your heart
already.   -- C. S. Lewis


Mime
View raw message