Class LogKit2AvalonLoggerAdapter
java.lang.Object
org.apache.avalon.framework.logger.LogKit2AvalonLoggerAdapter
- All Implemented Interfaces:
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.
- Since:
- 4.1.4
- Version:
- CVS $Revision: 1.11 $ $Date: 2004/02/11 14:34:26 $
- Author:
- Avalon Development Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.log.Logger
createLogger
(Logger logger) Create a LogkitLogger
instance that redirects to an AvalonLogger
instance.void
processEvent
(org.apache.log.LogEvent event) Route a LogKit message to an avalon Logger.
-
Constructor Details
-
LogKit2AvalonLoggerAdapter
Constructor for an Adaptor. Adapts to specified Avalon Logger.- Parameters:
logger
- the avalon logger.
-
-
Method Details
-
createLogger
Create a LogkitLogger
instance that redirects to an AvalonLogger
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 interfaceorg.apache.log.LogTarget
- Parameters:
event
- the log message
-