Enum Class HttpLogger.Level

java.lang.Object
java.lang.Enum<HttpLogger.Level>
org.microproxy.extras.HttpLogger.Level
All Implemented Interfaces:
Serializable, Comparable<HttpLogger.Level>, Constable
Enclosing class:
HttpLogger

public static enum HttpLogger.Level extends Enum<HttpLogger.Level>
How much of each message to log.
  • Enum Constant Details

    • BASIC

      public static final HttpLogger.Level BASIC
      The request line, the status line, timings and the body sizes from the heads.
    • HEADERS

      public static final HttpLogger.Level HEADERS
      Also the headers, and how the proxy and filters changed them.
    • BODY

      public static final HttpLogger.Level BODY
      Also the bodies, up to HttpLogger.Builder.maxBodyBytes each.
  • Method Details

    • values

      public static HttpLogger.Level[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HttpLogger.Level valueOf(String name)
      Returns 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.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null