org.jlf.log.smtpMechanism
Class LogEntry

java.lang.Object
  |
  +--org.jlf.log.smtpMechanism.LogEntry

public class LogEntry
extends java.lang.Object

This class holds all the information to dispatch a log entry.


Field Summary
protected  Log log
          Holds the Log that the entry is to be logged for.
protected  int loggingLevel
          Holds the logging level the log entry is to be logged at.
protected  java.lang.String logString
          Holds the string text to be logged.
 
Constructor Summary
protected LogEntry()
          Protect the default constructor, please use the public parameterized constructor instead!!!
  LogEntry(Log log, int loggingLevel, java.lang.String logString)
          Constructs a log entry with all required parameters.
 
Method Summary
 Log getLog()
          Retrieves the log the entry is for.
 int getLoggingLevel()
          Retrieves the loggingLevel the entry is for.
 java.lang.String getLogString()
          Retrieves the log string the entry is for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected Log log
Holds the Log that the entry is to be logged for.


loggingLevel

protected int loggingLevel
Holds the logging level the log entry is to be logged at.


logString

protected java.lang.String logString
Holds the string text to be logged. TODO: Eventually this should be a real data structure of an ordered map, to facilitate logging to XML instead of a separated string structure.

Constructor Detail

LogEntry

public LogEntry(Log log,
                int loggingLevel,
                java.lang.String logString)
Constructs a log entry with all required parameters.


LogEntry

protected LogEntry()
Protect the default constructor, please use the public parameterized constructor instead!!!

Method Detail

getLog

public Log getLog()
Retrieves the log the entry is for.


getLoggingLevel

public int getLoggingLevel()
Retrieves the loggingLevel the entry is for.


getLogString

public java.lang.String getLogString()
Retrieves the log string the entry is for.