@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.398Z") @Stability(value=Stable) public enum LogLevel extends 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(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.
|
@Stability(value=Stable) public static final LogLevel OFF
@Stability(value=Stable) public static final LogLevel ALL
@Stability(value=Stable) public static final LogLevel ERROR
@Stability(value=Stable) public static final LogLevel FATAL
public static LogLevel[] values()
for (LogLevel c : LogLevel.values()) System.out.println(c);
public static LogLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.