org.apache.avalon.phoenix.components.manager
Class MX4JLoggerAdapter

java.lang.Object
  |
  +--Logger
        |
        +--org.apache.avalon.phoenix.components.manager.MX4JLoggerAdapter

public class MX4JLoggerAdapter
extends Logger

A class to pipe MX4J's own logger to the one Phoenix wants to use.

See Also:
Serialized Form

Constructor Summary
MX4JLoggerAdapter()
           
 
Method Summary
protected  void log(int level, Object message, Throwable throwable)
          This overides the method in the super class to actually deliver Avalon Logging to MX4J
static void setLogger(org.apache.avalon.framework.logger.Logger logger)
          This is really bad.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MX4JLoggerAdapter

public MX4JLoggerAdapter()
Method Detail

setLogger

public static void setLogger(org.apache.avalon.framework.logger.Logger logger)
This is really bad. A static way of introducing a logger to a tool.

Parameters:
logger - the Avalon logger.

log

protected void log(int level,
                   Object message,
                   Throwable throwable)
This overides the method in the super class to actually deliver Avalon Logging to MX4J

Parameters:
level - the debug/warn/error level.
message - the message to log.
throwable - a message that may be sent.


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.