public static class LogMessage.Builder
extends java.lang.Object
Constructor and Description |
---|
LogMessage.Builder()
Instantiates a new builder.
|
LogMessage.Builder(java.lang.String level,
java.lang.String msg)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
LogMessage |
build()
Builds a LogMessage.
|
LogMessage.Builder |
level(java.lang.String level)
Set the level.
|
LogMessage.Builder |
msg(java.lang.String msg)
Set the msg.
|
public LogMessage.Builder()
public LogMessage.Builder(java.lang.String level, java.lang.String msg)
level
- the levelmsg
- the msgpublic LogMessage build()
public LogMessage.Builder level(java.lang.String level)
level
- the levelpublic LogMessage.Builder msg(java.lang.String msg)
msg
- the msg