Save This Page
Home » slf4j-1.5.5 » org.apache » log4j » lf5 » util » [javadoc | source]
org.apache.log4j.lf5.util
public class: LogMonitorAdapter [javadoc | source]
java.lang.Object
   org.apache.log4j.lf5.util.LogMonitorAdapter

LogMonitorAdapter facilitates the usage of the LogMonitor

Field Summary
public static final  int LOG4J_LOG_LEVELS     
public static final  int JDK14_LOG_LEVELS     
Method from org.apache.log4j.lf5.util.LogMonitorAdapter Summary:
addMessage,   getDefaultLevel,   getDefaultMonitorHeight,   getDefaultMonitorWidth,   getScreenHeight,   getScreenWidth,   getSevereLevel,   log,   log,   log,   log,   log,   newInstance,   newInstance,   newInstance,   setDefaultLevel,   setMaxNumberOfRecords,   setSevereLevel
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.lf5.util.LogMonitorAdapter Detail:
 public  void addMessage(LogRecord record) 

    Adds a LogRecord to the LogMonitor.

 public LogLevel getDefaultLevel() 

    Gets the default LogLevel for the Adapter.

 protected static int getDefaultMonitorHeight() 
 protected static int getDefaultMonitorWidth() 
 protected static int getScreenHeight() 
 protected static int getScreenWidth() 
 public LogLevel getSevereLevel() 

    Gets the current Severe LogLevel

 public  void log(String category,
    String message) 

    Log a message to the Monitor and use the default LogLevel.

 public  void log(String category,
    LogLevel level,
    String message) 

    Log a message to the Monitor.

 public  void log(String category,
    LogLevel level,
    String message,
    String NDC) 

    Log a message to the Monitor.

 public  void log(String category,
    LogLevel level,
    String message,
    Throwable t) 

    Log a message to the Monitor.

 public  void log(String category,
    LogLevel level,
    String message,
    Throwable t,
    String NDC) 

    Log a complete message to the Monitor.

 public static LogMonitorAdapter newInstance(int loglevels) 

    Creates an instance of LogMonitorAdapter using the log levels inticated by the parameter. Log4J and JDK1.4 both have default LogLevels which are set but these levels can be overriden.

 public static LogMonitorAdapter newInstance(LogLevel[] userDefined) 

    Creates an instance of LogMonitorAdapter using the specified LogLevels. The first LogLevel in the array is used as the default LogLevel unless changed using the setDefaultLevel method.

 public static LogMonitorAdapter newInstance(List userDefinedLevels) 

    Creates an instance of LogMonitorAdapter using the specified LogLevels. The first LogLevel in the List is used as the default LogLevel unless changed using the setDefaultLevel method.

 public  void setDefaultLevel(LogLevel level) 

    Set the default log level to be used when logging messages without specifying a LogLevel.

 public  void setMaxNumberOfRecords(int maxNumberOfRecords) 

    Set the maximum number of records to be displayed in the monitor

 public  void setSevereLevel(LogLevel level) 

    Sets the Severe LogLevel.