public static enum LoggingHandler.LogTarget extends Enum<LoggingHandler.LogTarget>
Enum Constant and Description |
---|
CLOUD_LOGGING
Sends logs to the Cloud Logging API.
|
STDERR
Sends JSON-formatted logs to stderr, for use with the Google Cloud logging agent.
|
STDOUT
Sends JSON-formatted logs to stdout, for use with the Google Cloud logging agent.
|
Modifier and Type | Method and Description |
---|---|
static LoggingHandler.LogTarget |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoggingHandler.LogTarget[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoggingHandler.LogTarget CLOUD_LOGGING
public static final LoggingHandler.LogTarget STDOUT
public static final LoggingHandler.LogTarget STDERR
public static LoggingHandler.LogTarget[] values()
for (LoggingHandler.LogTarget c : LoggingHandler.LogTarget.values()) System.out.println(c);
public static LoggingHandler.LogTarget 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 © 2023 Google LLC. All rights reserved.