TPTP 4.4.0 Monitoring Tools Project
Internal API Specification

org.eclipse.hyades.logging.parsers.internal.importer
Class GLALogger

java.lang.Object
  extended byorg.eclipse.hyades.logging.commons.Logger
      extended byorg.eclipse.hyades.logging.parsers.internal.importer.GLALogger
All Implemented Interfaces:
org.eclipse.hyades.logging.core.IPreemptedLogger, org.apache.commons.logging.Log

public class GLALogger
extends org.eclipse.hyades.logging.commons.Logger

This class extends org.eclipse.hyades.logging.commons.Logger so that it only logs the Common Base Event message instead of the whole Common Base Event. This class is used to log GLA messages.

See Also:
Log, LogFactory, LoggingAgent, Logger, LoggerFactory

Field Summary
 
Fields inherited from class org.eclipse.hyades.logging.commons.Logger
DEBUG_LEVEL, ERROR_LEVEL, FATAL_LEVEL, INFO_LEVEL, loggingAgent, TRACE_LEVEL, WARN_LEVEL
 
Constructor Summary
GLALogger(java.lang.String name)
          Constructor to create a logger instance with a Logging Agent using the parameter name.
 
Method Summary
 void trace(java.lang.Object record)
          Logs the parameter java.lang.Object log record to the Logging Agent with the same name as the logger if TRACE logging is currently enabled.
 void trace(java.lang.Object record, java.lang.Throwable throwable)
          Logs the parameter java.lang.Object log record and java.lang.Throwable exception to the Logging Agent with the same name as the logger if TRACE logging is currently enabled.
 
Methods inherited from class org.eclipse.hyades.logging.commons.Logger
debug, debug, error, error, fatal, fatal, finalize, getLevel, getLevelAsString, getName, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isLogging, isTraceEnabled, isWarnEnabled, setLevel, setLevelAsString, waitUntilLogging, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLALogger

public GLALogger(java.lang.String name)
Constructor to create a logger instance with a Logging Agent using the parameter name. NOTE: The default logging level is set to WARN until explicitly set.

Parameters:
name - The name of the newly created logger.
Method Detail

trace

public void trace(java.lang.Object record)
Logs the parameter java.lang.Object log record to the Logging Agent with the same name as the logger if TRACE logging is currently enabled. If the log record is a CommonBaseEvent only the CommonBaseEvent message will be sent to the Logging Agent. Otherwise it is assumed the record is a String.

Parameters:
record - The log record to be logged to the Logging Agent.

trace

public void trace(java.lang.Object record,
                  java.lang.Throwable throwable)
Logs the parameter java.lang.Object log record and java.lang.Throwable exception to the Logging Agent with the same name as the logger if TRACE logging is currently enabled. If the log record is a CommonBaseEvent only the CommonBaseEvent message will be sent to the Logging Agent. Otherwise it is assumed the record is a String. Only the parameter java.lang.Object log record is logged. The java.lang.Throwable exception is ignored.

Parameters:
record - The log record to be logged to the Logging Agent.
throwable - The exception will be ignored

TPTP 4.4.0 Monitoring Tools Project
Internal API Specification