Skip to main content
Package: com.coinbase.cdp.core
Log levels for SDK logging configuration. Silent by default — no log output unless explicitly configured.

Enum Constant Details

DEBUG

INFO

WARN

ERROR

Method Details

values

Returns an array containing the constants of this enum class, in the order they are declared. Returns: LogLevel[] - an array containing the constants of this enum class, in the order they are declared

valueOf

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 - 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

Returns: int

fromString

Parse a log level from a string (case-insensitive). Parameters: level (String) - the level string (debug, info, warn, error) Returns: 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