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
|
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)
|
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
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
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)
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