© 2002 - Lorne Brinkman
www.TheObjectGuy.com
Lorne@TheObjectGuy.com

com.bitfactoryinc.logging
Class LogEntry

java.lang.Object
  |
  +--com.bitfactoryinc.logging.LogEntry

public class LogEntry
extends java.lang.Object
implements LoggingConstants, java.io.Serializable

This class encapsulates entries to Loggers. application : This String indicates application level information. It could be a user, it could be a user and an application name, or whatever is needed (if anything) to distinguish the LogEntries category : This Object will most likely be a String, but if a more sophisticated means of categorization is required, you are not limited to the use of Strings severity : This integer represents the severity of the LogEntry. See LoggerConstantsInterface. message : This String represents the Object that was logged, which itself, most likely, was a String date : This is the date & time that the entry was made to the log

See Also:
LoggingConstants, Serialized Form

Field Summary
private  java.lang.String application
           
private  java.lang.Object category
           
private  java.util.Date date
           
private  java.lang.String message
           
private  int severity
           
 
Fields inherited from interface com.bitfactoryinc.logging.LoggingConstants
CRITICAL, DEBUG, ERROR, FATAL, INFO, severities, STATUS, WARNING
 
Constructor Summary
private LogEntry()
           
protected LogEntry(int aSeverity, java.lang.String anApplication, java.lang.Object aCategory, java.lang.String aMessage)
           
protected LogEntry(int aSeverity, java.lang.String anApplication, java.lang.Object aCategory, java.lang.String aMessage, java.util.Date aDate)
           
 
Method Summary
 java.lang.String getApplication()
           
 java.lang.Object getCategory()
           
 java.util.Date getDate()
           
 java.lang.String getMessage()
           
 int getSeverity()
           
protected  void setApplication(java.lang.String newApplication)
           
protected  void setCategory(java.lang.Object newCategory)
           
protected  void setDate(java.util.Date newDate)
           
protected  void setMessage(java.lang.String newMessage)
           
protected  void setSeverity(int newSeverity)
           
 java.lang.String severityString()
          return the string representation of the severity
 java.lang.String toString()
          Return a basic String representation of me.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

message

private java.lang.String message

date

private java.util.Date date

application

private java.lang.String application

severity

private int severity

category

private java.lang.Object category
Constructor Detail

LogEntry

private LogEntry()

LogEntry

protected LogEntry(int aSeverity,
                   java.lang.String anApplication,
                   java.lang.Object aCategory,
                   java.lang.String aMessage)

LogEntry

protected LogEntry(int aSeverity,
                   java.lang.String anApplication,
                   java.lang.Object aCategory,
                   java.lang.String aMessage,
                   java.util.Date aDate)
Method Detail

getApplication

public java.lang.String getApplication()

getCategory

public java.lang.Object getCategory()

getDate

public java.util.Date getDate()

getMessage

public java.lang.String getMessage()

getSeverity

public int getSeverity()

setApplication

protected void setApplication(java.lang.String newApplication)

setCategory

protected void setCategory(java.lang.Object newCategory)

setDate

protected void setDate(java.util.Date newDate)

setMessage

protected void setMessage(java.lang.String newMessage)

setSeverity

protected void setSeverity(int newSeverity)

severityString

public java.lang.String severityString()
return the string representation of the severity

toString

public java.lang.String toString()
Return a basic String representation of me. Better formating is accomplished elsewhere using the LogEntryFormatter hierarchy
Overrides:
toString in class java.lang.Object
See Also:
LogEntryFormatter

© 2002 - Lorne Brinkman
www.TheObjectGuy.com
Lorne@TheObjectGuy.com