Enum Class LoggingFeature.Verbosity
- All Implemented Interfaces:
- Enclosing class:
Verbositydetermines how detailed message will be logged.
- The lowest verbosity (
HEADERS_ONLY) will log only request/response headers.
The medium verbosity will log request/response headers, as well as an entity if considered a readable text. See
- The highest verbosity will log all types of an entity (besides the request/response headers.
Note that the entity is logged up to the maximum number specified in any of the following constructors
LoggingFeature(Logger, Level, Verbosity, Integer)
or by some of the feature's properties (see
Enum Constant Details
HEADERS_ONLYpublic static final LoggingFeature.Verbosity HEADERS_ONLYOnly content of HTTP headers is logged. No message payload data are logged.
PAYLOAD_TEXTpublic static final LoggingFeature.Verbosity PAYLOAD_TEXTContent of HTTP headers as well as entity content of textual media types is logged. Following is the list of media types that are considered textual for the logging purposes:
PAYLOAD_ANYpublic static final LoggingFeature.Verbosity PAYLOAD_ANYFull verbose logging. Content of HTTP headers as well as any message payload content will be logged.
valuespublic static LoggingFeature.Verbosity values()Returns an array containing the constants of this enum class, in the order they are declared.
- an array containing the constants of this enum class, in the order they are declared
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)