HttpLogDetailLevel Enum

Definition

The level of detail to log on HTTP messages.

public enum HttpLogDetailLevel extends Enum<HttpLogDetailLevel>
Inheritance
java.lang.Object
java.lang.Enum
HttpLogDetailLevel

Inherited Members

java.lang.Enum.<T>valueOf(java.lang.Class<T>,java.lang.String) java.lang.Enum.clone() java.lang.Enum.compareTo(E) java.lang.Enum.equals(java.lang.Object) java.lang.Enum.finalize() java.lang.Enum.getDeclaringClass() java.lang.Enum.hashCode() java.lang.Enum.name() java.lang.Enum.ordinal() java.lang.Enum.toString() java.lang.Object.getClass() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Fields

BASIC

Logs only URLs, HTTP methods, and time to finish the request.

BODY

Logs everything in BASIC, plus all the request and response body. Note that only payloads in plain text or plain text encoded in GZIP will be logged.

BODY_AND_HEADERS

Logs everything in HEADERS and BODY.

HEADERS

Logs everything in BASIC, plus all the request and response headers.

NONE

Logging is turned off.

Methods

shouldLogBody()

public boolean shouldLogBody()

Returns

boolean

a value indicating whether HTTP message bodies should be logged.

shouldLogHeaders()

public boolean shouldLogHeaders()

Returns

boolean

a value indicating whether HTTP message headers should be logged.

shouldLogUrl()

public boolean shouldLogUrl()

Returns

boolean

a value indicating whether a request's URL should be logged.

valueOf(String name)

public static HttpLogDetailLevel valueOf(String name)

Parameters

name
java.lang.String

Returns

values()

public static HttpLogDetailLevel[] values()

Returns

Applies to