Package org.influxdb

Enum InfluxDB.LogLevel

java.lang.Object
java.lang.Enum<InfluxDB.LogLevel>
org.influxdb.InfluxDB.LogLevel
All Implemented Interfaces:
Serializable, Comparable<InfluxDB.LogLevel>, java.lang.constant.Constable
Enclosing interface:
InfluxDB

public static enum InfluxDB.LogLevel
extends Enum<InfluxDB.LogLevel>
Controls the level of logging of the REST layer.
  • Enum Constant Details

    • NONE

      public static final InfluxDB.LogLevel NONE
      No logging.
    • BASIC

      public static final InfluxDB.LogLevel BASIC
      Log only the request method and URL and the response status code and execution time.
    • HEADERS

      public static final InfluxDB.LogLevel HEADERS
      Log the basic information along with request and response headers.
    • FULL

      public static final InfluxDB.LogLevel FULL
      Log the headers, body, and metadata for both requests and responses.

      Note: This requires that the entire request and response body be buffered in memory!

  • Method Details

    • values

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

      public static InfluxDB.LogLevel valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • parseLogLevel

      public static InfluxDB.LogLevel parseLogLevel​(String value)
      Parses the string argument as a LogLevel constant.
      Parameters:
      value - a String containing the LogLevel constant representation to be parsed
      Returns:
      the LogLevel constant representation of the param or NONE for null or any invalid String representation.