sdsu.logging
Class SelectiveLogger

java.lang.Object
  |
  +--sdsu.logging.LoggerImplementation
        |
        +--sdsu.logging.SelectiveLogger
Direct Known Subclasses:
FileLogger, ScreenLogger

public abstract class SelectiveLogger
extends LoggerImplementation

SelectiveLogger allows you to turn off logging for a type of message. Default activity is logging turn on for all types of messages.

Version:
1.1 18 January 1998
Author:
Roger Whitney (whitney@cs.sdsu.edu)
See Also:
Logger

Constructor Summary
SelectiveLogger()
           
 
Method Summary
 void debugOff()
          Turns logging of debug statements off.
 void debugOn()
          Turns logging of debug statements on.
 void errorOff()
          Turns logging of error statements off.
 void errorOn()
          Turns logging of error statements on.
 void log(LoggerMessage message)
          Add the LogMessage object to the log.
 void logOff()
          Turns logging of log statements off.
 void logOn()
          Turns logging of log statements on.
 void messageTypeOff(java.lang.String messageType)
          Turns logging off for messages of the given type.
 void messageTypeOn(java.lang.String messageType)
          Turns logging on for messages of the given type.
 void warningOff()
          Turns logging of warning statements off.
 void warningOn()
          Turns logging of warning statements on.
 
Methods inherited from class sdsu.logging.LoggerImplementation
register, reset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectiveLogger

public SelectiveLogger()
Method Detail

messageTypeOff

public void messageTypeOff(java.lang.String messageType)
Turns logging off for messages of the given type.

messageTypeOn

public void messageTypeOn(java.lang.String messageType)
Turns logging on for messages of the given type.

debugOn

public void debugOn()
Turns logging of debug statements on.

errorOn

public void errorOn()
Turns logging of error statements on.

warningOn

public void warningOn()
Turns logging of warning statements on.

logOn

public void logOn()
Turns logging of log statements on.

debugOff

public void debugOff()
Turns logging of debug statements off.

errorOff

public void errorOff()
Turns logging of error statements off.

warningOff

public void warningOff()
Turns logging of warning statements off.

logOff

public void logOff()
Turns logging of log statements off.

log

public void log(LoggerMessage message)
Add the LogMessage object to the log. Subclasses must implement.
Overrides:
log in class LoggerImplementation