A no-operation implementation of LoggingEventBuilder.
As the name indicates, the method in this class do nothing, except when a return value is expected in which case a singleton, i.e. the unique instance of this class is returned.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final NOPLoggingEventBuilder |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public LoggingEventBuilder | addArgument(Object p)
Implements org. Add an argument to the event being built. |
| public LoggingEventBuilder | addArgument(Supplier<?> objectSupplier)
Implements org. Add an argument supplier to the event being built. |
| public LoggingEventBuilder | addKeyValue(String key, Object value)
Implements org. Add a |
| public LoggingEventBuilder | addKeyValue(String key, Supplier<Object> value)
Implements org. Add a |
| public LoggingEventBuilder | addMarker(Marker marker)
Implements org. A |
| public void | log()
Implements org. After the logging event is built, performs actual logging. |
| public void | log(String message)
Implements org. Equivalent to calling |
| public void | log(Supplier<String> messageSupplier)
Implements org. Equivalent to calling |
| public void | log(String message, Object arg)
Implements org. Equivalent to calling |
| public void | log(String message, Object arg0, Object arg1)
Implements org. Equivalent to calling |
| public void | log(String message, Object... args)
Implements org. Equivalent to calling |
| public LoggingEventBuilder | setCause(Throwable cause)
Implements org. Set the cause for the logging event being built. |
| public LoggingEventBuilder | setMessage(String message)
Implements org. Sets the message of the logging event. |
| public LoggingEventBuilder | setMessage(Supplier<String> messageSupplier)
Implements org. Sets the message of the event via a message supplier. |
| public static LoggingEventBuilder | Returns: the singleton instance of this classReturns the singleton instance of this class. |
| SINGLETON | back to summary |
|---|---|
| pack-priv static final NOPLoggingEventBuilder SINGLETON | |
| NOPLoggingEventBuilder | back to summary |
|---|---|
| private NOPLoggingEventBuilder() | |
| addArgument | back to summary |
|---|---|
| public LoggingEventBuilder addArgument(Object p) Implements org. Doc from org. Add an argument to the event being built.
| |
| addArgument | back to summary |
|---|---|
| public LoggingEventBuilder addArgument(Supplier<?> objectSupplier) Implements org. Doc from org. Add an argument supplier to the event being built.
| |
| addKeyValue | back to summary |
|---|---|
| public LoggingEventBuilder addKeyValue(String key, Object value) Implements org. Doc from org. Add a
| |
| addKeyValue | back to summary |
|---|---|
| public LoggingEventBuilder addKeyValue(String key, Supplier<Object> value) Implements org. Doc from org. Add a
| |
| addMarker | back to summary |
|---|---|
| public LoggingEventBuilder addMarker(Marker marker) Implements org. Doc from org. A
| |
| log | back to summary |
|---|---|
| public void log() Implements org. Doc from org. 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) Implements org. Doc from org. Equivalent to calling
| |
| log | back to summary |
|---|---|
| public void log(Supplier<String> messageSupplier) Implements org. Doc from org. Equivalent to calling
| |
| log | back to summary |
|---|---|
| public void log(String message, Object arg) Implements org. Doc from org. Equivalent to calling
| |
| log | back to summary |
|---|---|
| public void log(String message, Object arg0, Object arg1) Implements org. Doc from org. Equivalent to calling
| |
| log | back to summary |
|---|---|
| public void log(String message, Object... args) Implements org. Doc from org. Equivalent to calling
| |
| setCause | back to summary |
|---|---|
| public LoggingEventBuilder setCause(Throwable cause) Implements org. Doc from org. Set the cause for the logging event being built.
| |
| setMessage | back to summary |
|---|---|
| public LoggingEventBuilder setMessage(String message) Implements org. Doc from org. Sets the message of the logging event.
| |
| setMessage | back to summary |
|---|---|
| public LoggingEventBuilder setMessage(Supplier<String> messageSupplier) Implements org. Doc from org. Sets the message of the event via a message supplier.
| |
| singleton | back to summary |
|---|---|
| public static LoggingEventBuilder singleton() Returns the singleton instance of this class.
Used by
| |