LogLevel Enum

  • java.lang.Object
    • java.lang.Enum
      • com.azure.core.util.logging.LogLevel

public enum LogLevel
extends Enum<LogLevel>

Enum which represent logging levels used in Azure SDKs.

Fields

ERROR

Indicates that log level is at error level.

INFORMATIONAL

Indicates that log level is at information level.

NOT_SET

Indicates that no log level is set.

VERBOSE

Indicates that log level is at verbose level.

WARNING

Indicates that log level is at warning level.

Methods inherited from java.lang.Enum

Methods inherited from java.lang.Object

Methods

fromString(String logLevelVal)

public static LogLevel fromString(String logLevelVal)

Converts the passed log level string to the corresponding LogLevel.

Parameters

logLevelVal
String
The log level value which needs to convert

Returns

The LogLevel Enum if pass in the valid string. The valid strings for LogLevel are:
  • VERBOSE: "verbose", "debug"
  • INFO: "info", "information", "informational"
  • WARNING: "warn", "warning"
  • ERROR: "err", "error"
Returns NOT_SET if null is passed in.

getLogLevel()

public int getLogLevel()

Converts the log level into a numeric representation used for comparisons.

Returns

int
The numeric representation of the log level.

valueOf(String name)

public static LogLevel valueOf(String name)

Parameters

name
String

Returns

values()

public static LogLevel[] values()

Returns

Applies to