public enum LogLevel extends Enum<LogLevel> implements ProtocolMessageEnum
**Beta Feature** The logging verbosity for device activity. Specifies which events should be written to logs. For example, if the LogLevel is ERROR, only events that terminate in errors will be logged. LogLevel is inclusive; enabling INFO logging will also enable ERROR logging.Protobuf enum
google.cloud.iot.v1.LogLevel
Enum Constant and Description |
---|
DEBUG
All events will be logged.
|
ERROR
Error events will be logged.
|
INFO
Informational events will be logged, such as connections and
disconnections.
|
LOG_LEVEL_UNSPECIFIED
No logging specified.
|
NONE
Disables logging.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
DEBUG_VALUE
All events will be logged.
|
static int |
ERROR_VALUE
Error events will be logged.
|
static int |
INFO_VALUE
Informational events will be logged, such as connections and
disconnections.
|
static int |
LOG_LEVEL_UNSPECIFIED_VALUE
No logging specified.
|
static int |
NONE_VALUE
Disables logging.
|
Modifier and Type | Method and Description |
---|---|
static LogLevel |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<LogLevel> |
internalGetValueMap() |
static LogLevel |
valueOf(Descriptors.EnumValueDescriptor desc) |
static LogLevel |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LogLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogLevel LOG_LEVEL_UNSPECIFIED
No logging specified. If not specified, logging will be disabled.
LOG_LEVEL_UNSPECIFIED = 0;
public static final LogLevel NONE
Disables logging.
NONE = 10;
public static final LogLevel ERROR
Error events will be logged.
ERROR = 20;
public static final LogLevel INFO
Informational events will be logged, such as connections and disconnections.
INFO = 30;
public static final LogLevel DEBUG
All events will be logged.
DEBUG = 40;
public static final LogLevel UNRECOGNIZED
public static final int LOG_LEVEL_UNSPECIFIED_VALUE
No logging specified. If not specified, logging will be disabled.
LOG_LEVEL_UNSPECIFIED = 0;
public static final int NONE_VALUE
Disables logging.
NONE = 10;
public static final int ERROR_VALUE
Error events will be logged.
ERROR = 20;
public static final int INFO_VALUE
Informational events will be logged, such as connections and disconnections.
INFO = 30;
public static final int DEBUG_VALUE
All events will be logged.
DEBUG = 40;
public static LogLevel[] values()
for (LogLevel c : LogLevel.values()) System.out.println(c);
public static LogLevel 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 nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static LogLevel valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static LogLevel forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<LogLevel> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static LogLevel valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.