@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:43.485Z") public enum LogLevel extends java.lang.Enum<LogLevel>
Default: ERROR
Example:
import software.amazon.awscdk.services.logs.*; LogGroup logGroup = new LogGroup(this, "MyLogGroup"); StateMachine.Builder.create(this, "MyStateMachine") .definition(Chain.start(new Pass(this, "Pass"))) .logs(LogOptions.builder() .destination(logGroup) .level(LogLevel.ALL) .build()) .build();
Enum Constant and Description |
---|
ALL
Log everything.
|
ERROR
Log all errors.
|
FATAL
Log fatal errors.
|
OFF
No Logging.
|
Modifier and Type | Method and Description |
---|---|
static LogLevel |
valueOf(java.lang.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 OFF
public static final LogLevel ALL
public static final LogLevel ERROR
public static final LogLevel FATAL
public static LogLevel[] values()
for (LogLevel c : LogLevel.values()) System.out.println(c);
public static LogLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null