@Stability(value=Experimental) public static final class LoggerOptions.Builder extends Object implements software.amazon.jsii.Builder<LoggerOptions>
LoggerOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
LoggerOptions |
build()
Builds the configured instance.
|
LoggerOptions.Builder |
level(LogLevel level)
Sets the value of
LoggerOptions.getLevel() |
LoggerOptions.Builder |
usePrefix(Boolean usePrefix)
Sets the value of
LoggerOptions.getUsePrefix() |
@Stability(value=Experimental) public LoggerOptions.Builder level(LogLevel level)
LoggerOptions.getLevel()level - The logging verbosity.
The levels available (in increasing verbosity) are
OFF, ERROR, WARN, INFO, DEBUG, and VERBOSE.this@Stability(value=Experimental) public LoggerOptions.Builder usePrefix(Boolean usePrefix)
LoggerOptions.getUsePrefix()usePrefix - Include a prefix for all logging messages with the project name.this@Stability(value=Experimental) public LoggerOptions build()
build in interface software.amazon.jsii.Builder<LoggerOptions>LoggerOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.