TwilightMinds.Log
Class LogEntry

java.lang.Object
  |
  +--TwilightMinds.Log.LogEntry

public class LogEntry
extends java.lang.Object

An object of the LogEntry class holds the information needed for a single entry into a Log.

Author: Reason
Last Modified: 12/06/00

------------------------------------------------

Copyright (C) 2000 Twilight Minds. All rights reserved.

This Java package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this package; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Alternatively, a copy can be obtained from the Twilight Minds web site: http://www.twilightminds.com/GNU-LGPL.html

Twilight Minds Design Group http://www.twilightminds.com/


Constructor Summary
LogEntry(EntryType inputentrytype, java.lang.String inputentrymessage)
          The standard constructor, setting the type of entry and string entry message.
LogEntry(EntryType inputentrytype, java.lang.String inputentrymessage, java.lang.Exception exception)
          Construct a log entry with additional error information provided by an exception.
 
Method Summary
 java.util.Date getDate()
          Get the Date object that timestamps this LogEntry.
 java.lang.String getEntryMessage()
          Return the entry message.
 EntryType getEntryType()
          Return the entry type.
 java.lang.String getExceptionMessage()
          Return the exception message, or null if there is no exception message associated with this LogEntry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogEntry

public LogEntry(EntryType inputentrytype,
                java.lang.String inputentrymessage)
The standard constructor, setting the type of entry and string entry message.

LogEntry

public LogEntry(EntryType inputentrytype,
                java.lang.String inputentrymessage,
                java.lang.Exception exception)
Construct a log entry with additional error information provided by an exception.
Method Detail

getEntryType

public EntryType getEntryType()
Return the entry type.

getEntryMessage

public java.lang.String getEntryMessage()
Return the entry message.

getExceptionMessage

public java.lang.String getExceptionMessage()
Return the exception message, or null if there is no exception message associated with this LogEntry.

getDate

public java.util.Date getDate()
Get the Date object that timestamps this LogEntry.