logging events.
| Modifier and Type | Method and Description |
|---|---|
| public LoggingEventBuilder | Returns: a LoggingEventBuilder, usually this.an Object to add. p)Add an argument to the event being built. |
| public LoggingEventBuilder | Returns: a LoggingEventBuilder, usually this.an Object supplier to add. objectSupplier)Add an argument supplier to the event being built. |
| public LoggingEventBuilder | Returns: a LoggingEventBuilder, usually this.the key of the key value pair. key, Object the value of the key value pair. value)Add a |
| public LoggingEventBuilder | Returns: a LoggingEventBuilder, usually this.the key of the key value pair. key, Supplier<Object> a supplier of a value for the key value pair. valueSupplier)Add a |
| public LoggingEventBuilder | |
| public void | |
| public void | |
| public void | log(String
the message to log message, Object an argument to be used with the message to log arg)Equivalent to calling |
| public void | log(String
the message to log message, Object first argument to be used with the message to log arg0, Object second argument to be used with the message to log arg1)Equivalent to calling |
| public void | log(String
the message to log message, Object... a list (actually an array) of arguments to be used with the message to log args)Equivalent to calling |
| public void | log(Supplier<String>
a Supplier returning a message of type String messageSupplier)Equivalent to calling |
| public LoggingEventBuilder | |
| public LoggingEventBuilder | |
| public LoggingEventBuilder | setMessage(Supplier<String>
supplies a String to be used as the message for the event messageSupplier)Sets the message of the event via a message supplier. |
| addArgument | back to summary |
|---|---|
| public LoggingEventBuilder addArgument(Object p) Add an argument to the event being built.
| |
| addArgument | back to summary |
|---|---|
| public LoggingEventBuilder addArgument(Supplier<?> objectSupplier) Add an argument supplier to the event being built.
| |
| addKeyValue | back to summary |
|---|---|
| public LoggingEventBuilder addKeyValue(String key, Object value) Add a
| |
| addKeyValue | back to summary |
|---|---|
| public LoggingEventBuilder addKeyValue(String key, Supplier<Object> valueSupplier) Add a
| |
| addMarker | back to summary |
|---|---|
| public LoggingEventBuilder addMarker(Marker marker) A
| |
| log | back to summary |
|---|---|
| public void log() After the logging event is built, performs actual logging. This method must be called
for logging to occur.
If the call to
| |
| log | back to summary |
|---|---|
| public void log(String message) Equivalent to calling
| |
| log | back to summary |
|---|---|
| public void log(String message, Object arg) Equivalent to calling | |
| log | back to summary |
|---|---|
| public void log(String message, Object arg0, Object arg1) Equivalent to calling | |
| log | back to summary |
|---|---|
| public void log(String message, Object... args) Equivalent to calling | |
| log | back to summary |
|---|---|
| public void log(Supplier<String> messageSupplier) Equivalent to calling | |
| setCause | back to summary |
|---|---|
| public LoggingEventBuilder setCause(Throwable cause) Set the cause for the logging event being built.
| |
| setMessage | back to summary |
|---|---|
| public LoggingEventBuilder setMessage(String message) Sets the message of the logging event.
| |
| setMessage | back to summary |
|---|---|
| public LoggingEventBuilder setMessage(Supplier<String> messageSupplier) Sets the message of the event via a message supplier.
| |