Class UserDataHelper
java.lang.Object
org.apache.tomcat.util.log.UserDataHelper
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:
- NOTHING: Log nothing.
- DEBUG_ALL: Log all problems at DEBUG log level.
- INFO_THEN_DEBUG: Log first problem at INFO log level and any further issues in the following TBD (configurable) seconds at DEBUG level
- INFO_ALL: Log all problems at INFO log level.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Log mode for the next log message. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns log mode for the next log message, ornull
if the message should not be logged.
-
Constructor Details
-
UserDataHelper
-
-
Method Details
-
getNextMode
Returns log mode for the next log message, ornull
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
-