org.apache.avalon.framework.logger
Class LogKit2AvalonLoggerAdapter

java.lang.Object
  extended by org.apache.avalon.framework.logger.LogKit2AvalonLoggerAdapter
All Implemented Interfaces:
LogTarget

public final class LogKit2AvalonLoggerAdapter
extends Object
implements LogTarget

A basic adapter that adapts an Avalon Logger to a Logkit Logger. Useful when providing backwards compatability support for Loggable components.

Since:
4.1.4
Version:
$Id: LogKit2AvalonLoggerAdapter.java 506231 2007-02-12 02:36:54Z crossley $
Author:
Avalon Development Team

Constructor Summary
LogKit2AvalonLoggerAdapter(Logger logger)
          Constructor for an Adaptor.
 
Method Summary
static Logger createLogger(Logger logger)
          Create a Logkit Logger instance that redirects to an Avalon Logger instance.
 void processEvent(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 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(LogEvent event)
Route a LogKit message to an avalon Logger.

Specified by:
processEvent in interface LogTarget
Parameters:
event - the log message


Copyright © 1997-2012 Apache Software Foundation. All Rights Reserved.