public static enum LoggingConsumer.OutputFormat extends Enum<LoggingConsumer.OutputFormat>
The target output format to log.
Enum Constant and Description |
---|
JSON
Will log compact json.
|
JSON_PRETTY
Will log pretty printed json.
|
TO_STRING
Will call
Object.toString() and log the result. |
Modifier and Type | Method and Description |
---|---|
static LoggingConsumer.OutputFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoggingConsumer.OutputFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoggingConsumer.OutputFormat JSON
public static final LoggingConsumer.OutputFormat JSON_PRETTY
public static final LoggingConsumer.OutputFormat TO_STRING
Object.toString()
and log the result.public static LoggingConsumer.OutputFormat[] values()
for (LoggingConsumer.OutputFormat c : LoggingConsumer.OutputFormat.values()) System.out.println(c);
public static LoggingConsumer.OutputFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017 Couchbase, Inc.. All rights reserved.