Apache Tomcat 6.0.53

org.apache.tomcat.util.log
Class UserDataHelper

java.lang.Object
  extended by org.apache.tomcat.util.log.UserDataHelper

public class UserDataHelper
extends java.lang.Object

This helper class assists with the logging associated with invalid input data. A developer may want all instances of invalid input data logged to assist with debugging whereas in production it is likely to be desirable not to log anything for invalid data. The following settings may be used:

By default, INFO_THEN_DEBUG is used with a suppression time of 24 hours. NOTE: This class is not completely thread-safe. When using INFO_THEN_DEBUG it is possible that several INFO messages will be logged before dropping to DEBUG.


Nested Class Summary
static class UserDataHelper.Mode
          Log mode for the next log message.
 
Constructor Summary
UserDataHelper(Log log)
           
 
Method Summary
 UserDataHelper.Mode getNextMode()
          Returns log mode for the next log message, or null if the message should not be logged.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDataHelper

public UserDataHelper(Log log)
Method Detail

getNextMode

public UserDataHelper.Mode getNextMode()
Returns log mode for the next log message, or null if the message should not be logged.

If INFO_THEN_DEBUG configuration option is enabled, this method might change internal state of this object.

Returns:
Log mode, or null

Apache Tomcat 6.0.53

Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.