Package de.betabeans.scroogexhtml.logging

Provides the logging classes.

See:
          Description

Interface Summary
Log Logging interface definition.
LogListener A EventListener subclass for LogEvents.
 

Class Summary
BasicConfigurator Utility class for quick configuration of the logging system.
DefaultLogger A simple logger implementation.
Level Definition of logging levels.
LogEvent A LogEvent object contains information about the logging event.
Logger Simple implementation of the Log Interface with 'empty' logging methods.
 

Package de.betabeans.scroogexhtml.logging Description

Provides the logging classes. Logging in ScroogeXHTML works very similar to Log4J. For details about Log4J, see http://jakarta.apache.org.

To activate logging,

Example:

    // create and assign logger instance
    Logger.setLogger(new DefaultLogger());
    // set logging level to ERROR
    Logger.setLogLevel(Level.LOG_ERROR);
    // add a LogListener
    BasicConfigurator.configure();

Important notes:

To replace the logging system with Log4J, first replace all package import statements import de.betabeans.scroogexhtml.logging.Logger; by import org.apache.log4j.Logger;. For the logger configuration, use the Log4J commands now. The code example above will no longer compile with the exception of "BasicConfigurator.configure()", which is also a valid configuration statement in Log4J.



Copyright (c) 1998-2006 BetaSoft Michael Justin. All Rights Reserved.