Partager via


DaprLogLevel Class

public final class DaprLogLevel
extends ExpandableStringEnum<DaprLogLevel>

Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.

Field Summary

Modifier and Type Field and Description
static final DaprLogLevel DEBUG

Static value debug for DaprLogLevel.

static final DaprLogLevel ERROR

Static value error for DaprLogLevel.

static final DaprLogLevel INFO

Static value info for DaprLogLevel.

static final DaprLogLevel WARN

Static value warn for DaprLogLevel.

Constructor Summary

Constructor Description
DaprLogLevel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DaprLogLevel value.

Method Summary

Modifier and Type Method and Description
static DaprLogLevel fromString(String name)

Creates or finds a DaprLogLevel from its string representation.

static Collection<DaprLogLevel> values()

Gets known DaprLogLevel values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DEBUG

public static final DaprLogLevel DEBUG

Static value debug for DaprLogLevel.

ERROR

public static final DaprLogLevel ERROR

Static value error for DaprLogLevel.

INFO

public static final DaprLogLevel INFO

Static value info for DaprLogLevel.

WARN

public static final DaprLogLevel WARN

Static value warn for DaprLogLevel.

Constructor Details

DaprLogLevel

@Deprecated
public DaprLogLevel()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DaprLogLevel value.

Method Details

fromString

public static DaprLogLevel fromString(String name)

Creates or finds a DaprLogLevel from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DaprLogLevel.

values

public static Collection values()

Gets known DaprLogLevel values.

Returns:

known DaprLogLevel values.

Applies to