TwilightMinds.Log
Class EntryType

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

public class EntryType
extends java.lang.Object

An EntryType object records a type of LogEntry that has an identifying name and is written to a specific Log.

Author: Reason
Last Modified: 11/23/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
EntryType(java.lang.String inputname, Log inputlog)
          The standard constructor for the EventType class.
EntryType(java.lang.String inputname, Log inputlog, boolean inputislogging)
          This constructor allows the islogging variable to be specified, determining whether or not LogEntries of this EventType will be logged.
 
Method Summary
 Log getLog()
          Return the Log object that entries of this type are sent to.
 java.lang.String getLogName()
          Return the identifying name of the Log that entries of this type are sent to.
 java.lang.String getName()
          Return the identifying name of this EntryType object.
 boolean isLogging()
          Return the logging status of all LogEntries of this EventType.
 void setLog(Log inputlog)
          Set the Log object that entries of this type are sent to.
 void startLogging()
          LogEntries of this EntryType will now be logged.
 void stopLogging()
          LogEntries of this EntryType will now not be logged.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryType

public EntryType(java.lang.String inputname,
                 Log inputlog)
The standard constructor for the EventType class. This EventType will be logged by default.

EntryType

public EntryType(java.lang.String inputname,
                 Log inputlog,
                 boolean inputislogging)
This constructor allows the islogging variable to be specified, determining whether or not LogEntries of this EventType will be logged.
Method Detail

getName

public java.lang.String getName()
Return the identifying name of this EntryType object.

getLogName

public java.lang.String getLogName()
Return the identifying name of the Log that entries of this type are sent to.

getLog

public Log getLog()
Return the Log object that entries of this type are sent to.

setLog

public void setLog(Log inputlog)
Set the Log object that entries of this type are sent to.

startLogging

public void startLogging()
LogEntries of this EntryType will now be logged.

stopLogging

public void stopLogging()
LogEntries of this EntryType will now not be logged.

isLogging

public boolean isLogging()
Return the logging status of all LogEntries of this EventType. False indicates that they will not be logged.