org.objectweb.speedo.jmx
Class MX4JLoggerMonolog

java.lang.Object
  extended bymx4j.log.Logger
      extended byorg.objectweb.speedo.jmx.MX4JLoggerMonolog

public class MX4JLoggerMonolog
extends mx4j.log.Logger

This class is a wrapper permiting to use Monolog as logging system, in MX4J.

Author:
S.Chassande-Barrioz

Field Summary
 
Fields inherited from class mx4j.log.Logger
DEBUG, ERROR, FATAL, INFO, TRACE, WARN
 
Constructor Summary
MX4JLoggerMonolog()
          Builds a MX4JLoggerMonolog instance.
MX4JLoggerMonolog(org.objectweb.util.monolog.api.Logger lo)
          Builds a MX4JLoggerMonolog with a particular inner Logger.
 
Method Summary
protected  void log(int p, java.lang.Object m, java.lang.Throwable t)
          Log the MX4J event into the inner monolog logger.
protected  void setCategory(java.lang.String name)
          Assignes the name/topic of the logger.
 void setPriority(int p)
          Assignes the priority/level on the logger.
 
Methods inherited from class mx4j.log.Logger
debug, debug, error, error, fatal, fatal, getCategory, getPriority, info, info, isEnabledFor, trace, trace, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MX4JLoggerMonolog

public MX4JLoggerMonolog()
Builds a MX4JLoggerMonolog instance. MX4J requires an empty constructor.


MX4JLoggerMonolog

public MX4JLoggerMonolog(org.objectweb.util.monolog.api.Logger lo)
Builds a MX4JLoggerMonolog with a particular inner Logger.

Parameters:
lo - the inner logger
Method Detail

setCategory

protected void setCategory(java.lang.String name)
Assignes the name/topic of the logger. The inner logger is allocated at this time.


setPriority

public void setPriority(int p)
Assignes the priority/level on the logger.


log

protected void log(int p,
                   java.lang.Object m,
                   java.lang.Throwable t)
Log the MX4J event into the inner monolog logger.