Class LogKit2AvalonLoggerAdapter

  • All Implemented Interfaces:
    org.apache.log.LogTarget

    public final class LogKit2AvalonLoggerAdapter
    extends java.lang.Object
    implements org.apache.log.LogTarget
    A basic adapter that adapts an Avalon Logger to a Logkit Logger. Useful when providing backwards compatability support for Loggable components.
    Version:
    CVS $Revision: 1.7 $ $Date: 2003/02/11 15:58:41 $
    Author:
    Avalon Development Team
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.log.Logger createLogger​(Logger logger)
      Create a Logkit Logger instance that redirects to an Avalon Logger instance.
      void processEvent​(org.apache.log.LogEvent event)
      Route a LogKit message to an avalon Logger.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogKit2AvalonLoggerAdapter

        public LogKit2AvalonLoggerAdapter​(Logger logger)
        Constructor for an Adaptor. Adapts to specified Avalon Logger.
        Parameters:
        logger - the avalon logger.
    • Method Detail

      • createLogger

        public static org.apache.log.Logger createLogger​(Logger logger)
        Create a Logkit Logger instance that redirects to an Avalon Logger instance.
        Parameters:
        logger - the Avalon Logger
        Returns:
        the LogKit Logger
      • processEvent

        public void processEvent​(org.apache.log.LogEvent event)
        Route a LogKit message to an avalon Logger.
        Specified by:
        processEvent in interface org.apache.log.LogTarget
        Parameters:
        event - the log message