Package org.influxdb
Enum 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.
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static InfluxDB.LogLevel
parseLogLevel(String value)
Parses the string argument as a LogLevel constant.static InfluxDB.LogLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static InfluxDB.LogLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
No logging. -
BASIC
Log only the request method and URL and the response status code and execution time. -
HEADERS
Log the basic information along with request and response headers. -
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
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
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 nameNullPointerException
- if the argument is null
-
parseLogLevel
Parses the string argument as a LogLevel constant.- Parameters:
value
- aString
containing theLogLevel constant
representation to be parsed- Returns:
- the LogLevel constant representation of the param
or
NONE
for null or any invalid String representation.
-