public class BasicMessageBuilder extends Object implements MessageBuilder
[category]:[LEVEL]=[id] followed by
the arguments (if any) separated by spaces, then the full stack trace of a throwable (if any).| Modifier and Type | Field and Description |
|---|---|
static BasicMessageBuilder |
INSTANCE
An instance of BasicMessageBuilder.
|
| Constructor and Description |
|---|
BasicMessageBuilder() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildMessage(char level,
String category,
int id)
Builds a message.
|
String |
buildMessage(char level,
String category,
int id,
Object... arguments)
Builds a message with arguments.
|
String |
buildMessage(char level,
String category,
int id,
Throwable t)
Builds a message with a throwable.
|
String |
buildMessage(char level,
String category,
int id,
Throwable t,
Object... arguments)
Builds a message with a throwable and arguments.
|
public static final BasicMessageBuilder INSTANCE
public String buildMessage(char level, String category, int id)
MessageBuilderbuildMessage in interface MessageBuilderlevel - the level of the message.category - the category of the message.id - the ID of the message.public String buildMessage(char level, String category, int id, Object... arguments)
MessageBuilderbuildMessage in interface MessageBuilderlevel - the level of the message.category - the category of the message.id - the ID of the message.arguments - the arguments.public String buildMessage(char level, String category, int id, Throwable t)
MessageBuilderbuildMessage in interface MessageBuilderlevel - the level of the message.category - the category of the message.id - the ID of the message.t - the throwable.public String buildMessage(char level, String category, int id, Throwable t, Object... arguments)
MessageBuilderbuildMessage in interface MessageBuilderlevel - the level of the message.category - the category of the message.id - the ID of the message.t - the throwable.arguments - the arguments.