@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.413Z") @Stability(value=Experimental) public class Logger extends Component
| Modifier and Type | Class and Description |
|---|---|
static class |
Logger.Builder
(experimental) A fluent builder for
Logger. |
| Modifier | Constructor and Description |
|---|---|
protected |
Logger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Logger(software.amazon.jsii.JsiiObjectRef objRef) |
|
Logger(Project project) |
|
Logger(Project project,
LoggerOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(Object... text)
(experimental) Log a message to stderr with DEBUG severity.
|
void |
error(Object... text)
(experimental) Log a message to stderr with ERROR severity.
|
void |
info(Object... text)
(experimental) Log a message to stderr with INFO severity.
|
void |
log(LogLevel level,
Object... text)
(experimental) Log a message to stderr with a given logging level.
|
void |
verbose(Object... text)
(experimental) Log a message to stderr with VERBOSE severity.
|
void |
warn(Object... text)
(experimental) Log a message to stderr with WARN severity.
|
getProject, postSynthesize, preSynthesize, synthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Logger(software.amazon.jsii.JsiiObjectRef objRef)
protected Logger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Logger(@NotNull
Project project,
@Nullable
LoggerOptions options)
project - This parameter is required.options - @Stability(value=Experimental)
public Logger(@NotNull
Project project)
project - This parameter is required.@Stability(value=Experimental)
public void debug(@NotNull
Object... text)
text - strings or objects to print. This parameter is required.@Stability(value=Experimental)
public void error(@NotNull
Object... text)
text - strings or objects to print. This parameter is required.@Stability(value=Experimental)
public void info(@NotNull
Object... text)
text - strings or objects to print. This parameter is required.@Stability(value=Experimental)
public void log(@NotNull
LogLevel level,
@NotNull
Object... text)
The message will be
printed as long as logger.level is set to the message's severity or higher.
level - Logging verbosity. This parameter is required.text - strings or objects to print. This parameter is required.@Stability(value=Experimental)
public void verbose(@NotNull
Object... text)
text - strings or objects to print. This parameter is required.@Stability(value=Experimental)
public void warn(@NotNull
Object... text)
text - strings or objects to print. This parameter is required.Copyright © 2021. All rights reserved.