ariba.util.log
Class LogSuppressor

java.lang.Object
  extended by ariba.util.log.LogSuppressor

public class LogSuppressor
extends java.lang.Object

A LogSuppressor will downgrade the level of a log message for all occurrences after the first, for some period of time. The effect is to quiet down messages so that readers of the log aren't flooded with repeated high-level log message.


Constructor Summary
LogSuppressor(long suppressTime, org.apache.log4j.Priority suppressLevel)
          Create a LogSuppressor for a particular log message.
 
Method Summary
 org.apache.log4j.Priority possiblySuppress(org.apache.log4j.Priority eventLevel)
          Possibly change the level of a log event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogSuppressor

public LogSuppressor(long suppressTime,
                     org.apache.log4j.Priority suppressLevel)
Create a LogSuppressor for a particular log message.

Parameters:
suppressTime - - time, in milliseconds, that we suppress a log message after an occurence.
suppressLevel - - the level we suppress the message to
Method Detail

possiblySuppress

public org.apache.log4j.Priority possiblySuppress(org.apache.log4j.Priority eventLevel)
Possibly change the level of a log event. This message is called on each log event for the given message. It will return the level to use, either the original (if not suppressed) or the suppression level.

Parameters:
eventLevel - - the event about to be logged.
Returns:
the level that should be used for the event


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.