com.resilientedge.util.logger
Interface LogRecord

All Known Implementing Classes:
SimpleLogRecord

public interface LogRecord

LogRecord objects are used to pass logging requests between the Logger and individual Handlers.

Author:
odh

Method Summary
 java.lang.Object[] getInsertValues()
          The implementation of this method should return the Log Record's insert values array.
 int getLevel()
          The implementation of this method should This method return the log record's Level.
 Logger getLogger()
          The implementation of this method should return the logger that created this record.
 java.lang.String getLoggingClassName()
          The implementation of this method should return the class name for the object generating the log request.
 java.lang.Throwable getLoggingException()
          The implementation of this method should return the Log Record's exception
 java.lang.String getLoggingMethodName()
          The implementation of this method should return the name of the method generating the log request.
 java.lang.Thread getLoggingThread()
          The implementation of this method should return the Thread responsible for generating the log request.
 java.lang.String getMessage()
          The implementation of this method should this method return the actual string to be logged.
 java.lang.String getRawMessage()
          The implementation of this method should return the Log Record's raw message.
 long getTimeInMillis()
          The implementation of this method should set the time the Log Record was created (in milliseconds).
 java.lang.String getTopic()
          The implementation of this method should return the log record's topic.
 void setInsertValues(java.lang.Object[] obj)
          The implementation of this method should assign the insert values used for substitution values if a message contains expansion tokens.
 void setLevel(int level)
          The implementation of this method should assign the Log Records' Level
 void setLogger(Logger logger)
          The implementation of this method should assign the Logger responsible for generating this record.
 void setLoggingClassName(java.lang.String className)
          The implementation of this method should assign the classname for the object generating the Log request.
 void setLoggingException(java.lang.Throwable exc)
          The implementation of this method should assign the exception to be logged.
 void setLoggingMethodName(java.lang.String methodName)
          The implementation of this method should assign the name of the Method which generated the log request.
 void setLoggingThread(java.lang.Thread thread)
          The implementation of this method should assign the Thread generating the log request.
 void setMessage(java.lang.String message)
          Set the actual message to be exported.
 void setRawMessage(java.lang.String rawMessage)
          The implementation of this method should assign the non-localized, non-substituted, non-formatted message.
 void setTimeInMillis(long timeInMillis)
          The implementation of this method should return the Log Record's time stamp (in milliseconds).
 void setTopic(java.lang.String topic)
          The implementation of this method should assign the LogRecord's topic.
 

Method Detail

setLoggingThread

public void setLoggingThread(java.lang.Thread thread)
The implementation of this method should assign the Thread generating the log request.
Parameters:
thread -  

getLoggingThread

public java.lang.Thread getLoggingThread()
The implementation of this method should return the Thread responsible for generating the log request.
Returns:
 

setLoggingClassName

public void setLoggingClassName(java.lang.String className)
The implementation of this method should assign the classname for the object generating the Log request.
Parameters:
className -  

getLoggingClassName

public java.lang.String getLoggingClassName()
The implementation of this method should return the class name for the object generating the log request.
Returns:
 

setLoggingMethodName

public void setLoggingMethodName(java.lang.String methodName)
The implementation of this method should assign the name of the Method which generated the log request.
Parameters:
methodName -  

getLoggingMethodName

public java.lang.String getLoggingMethodName()
The implementation of this method should return the name of the method generating the log request.
Returns:
 

setLoggingException

public void setLoggingException(java.lang.Throwable exc)
The implementation of this method should assign the exception to be logged.
Parameters:
exc -  

getLoggingException

public java.lang.Throwable getLoggingException()
The implementation of this method should return the Log Record's exception
Returns:
 

setLogger

public void setLogger(Logger logger)
The implementation of this method should assign the Logger responsible for generating this record.
Parameters:
logger -  

getLogger

public Logger getLogger()
The implementation of this method should return the logger that created this record.
Returns:
 

setRawMessage

public void setRawMessage(java.lang.String rawMessage)
The implementation of this method should assign the non-localized, non-substituted, non-formatted message. This may be a key.
Parameters:
rawMessage -  

getRawMessage

public java.lang.String getRawMessage()
The implementation of this method should return the Log Record's raw message.
Returns:
 

setMessage

public void setMessage(java.lang.String message)
Set the actual message to be exported.
Parameters:
message -  

getMessage

public java.lang.String getMessage()
The implementation of this method should this method return the actual string to be logged.
Returns:
 

setTopic

public void setTopic(java.lang.String topic)
The implementation of this method should assign the LogRecord's topic.
Parameters:
topic -  

getTopic

public java.lang.String getTopic()
The implementation of this method should return the log record's topic.
Returns:
 

setLevel

public void setLevel(int level)
The implementation of this method should assign the Log Records' Level
Parameters:
level -  

getLevel

public int getLevel()
The implementation of this method should This method return the log record's Level.
Returns:
 

setInsertValues

public void setInsertValues(java.lang.Object[] obj)
The implementation of this method should assign the insert values used for substitution values if a message contains expansion tokens.
Parameters:
obj -  

getInsertValues

public java.lang.Object[] getInsertValues()
The implementation of this method should return the Log Record's insert values array.
Returns:
 

setTimeInMillis

public void setTimeInMillis(long timeInMillis)
The implementation of this method should return the Log Record's time stamp (in milliseconds).
Parameters:
timeInMillis -  

getTimeInMillis

public long getTimeInMillis()
The implementation of this method should set the time the Log Record was created (in milliseconds).
Returns:
 


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.