> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdp.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LogLevel

> Log levels for SDK logging configuration.

Package: [`com.coinbase.cdp.core`](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/index)

```java theme={null}
public enum LogLevel extends Enum<LogLevel>
```

Log levels for SDK logging configuration. Silent by default — no log output unless explicitly configured.

## Enum Constant Details

### `DEBUG`

```java theme={null}
public static final LogLevel DEBUG
```

### `INFO`

```java theme={null}
public static final LogLevel INFO
```

### `WARN`

```java theme={null}
public static final LogLevel WARN
```

### `ERROR`

```java theme={null}
public static final LogLevel ERROR
```

## Method Details

### `values`

```java theme={null}
public static LogLevel[] values()
```

Returns an array containing the constants of this enum class, in the order they are declared.

**Returns:**

[LogLevel](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/LogLevel)\[] - an array containing the constants of this enum class, in the order they are declared

### `valueOf`

```java theme={null}
public static LogLevel valueOf(String name)
```

Returns the enum constant of this class with the specified name. The string must match *exactly* an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)

**Parameters:**

`name` (`String`) - the name of the enum constant to be returned.

**Returns:**

[LogLevel](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/LogLevel) - the enum constant with the specified name

**Throws:**

`[IllegalArgumentException](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html "class or interface in java.lang")` - if this enum class has no constant with the specified name

`[NullPointerException](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/NullPointerException.html "class or interface in java.lang")` - if the argument is null

### `getValue`

```java theme={null}
public int getValue()
```

**Returns:**

`int`

### `fromString`

```java theme={null}
public static LogLevel fromString(String level)
```

Parse a log level from a string (case-insensitive).

**Parameters:**

`level` (`String`) - the level string (debug, info, warn, error)

**Returns:**

[LogLevel](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/LogLevel) - the corresponding LogLevel

**Throws:**

`[IllegalArgumentException](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html "class or interface in java.lang")` - if the string does not match any level
