Package io.github.cdklabs.projen
Class LoggerOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.LoggerOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LoggerOptions>
- Enclosing interface:
- LoggerOptions
@Stability(Experimental) public static final class LoggerOptions.Builder extends Object implements software.amazon.jsii.Builder<LoggerOptions>
A builder forLoggerOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoggerOptionsbuild()Builds the configured instance.LoggerOptions.Builderlevel(LogLevel level)Sets the value ofLoggerOptions.getLevel()LoggerOptions.BuilderusePrefix(Boolean usePrefix)Sets the value ofLoggerOptions.getUsePrefix()
-
-
-
Method Detail
-
level
@Stability(Experimental) public LoggerOptions.Builder level(LogLevel level)
Sets the value ofLoggerOptions.getLevel()- Parameters:
level- The logging verbosity. The levels available (in increasing verbosity) are OFF, ERROR, WARN, INFO, DEBUG, and VERBOSE.- Returns:
this
-
usePrefix
@Stability(Experimental) public LoggerOptions.Builder usePrefix(Boolean usePrefix)
Sets the value ofLoggerOptions.getUsePrefix()- Parameters:
usePrefix- Include a prefix for all logging messages with the project name.- Returns:
this
-
build
@Stability(Experimental) public LoggerOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LoggerOptions>- Returns:
- a new instance of
LoggerOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-