public class BasicMessageBuilder extends java.lang.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 |
|---|---|
java.lang.String |
buildMessage(char level,
java.lang.String category,
int id)
Builds a message.
|
java.lang.String |
buildMessage(char level,
java.lang.String category,
int id,
java.lang.Object... arguments)
Builds a message with arguments.
|
java.lang.String |
buildMessage(char level,
java.lang.String category,
int id,
java.lang.Throwable t)
Builds a message with a throwable.
|
java.lang.String |
buildMessage(char level,
java.lang.String category,
int id,
java.lang.Throwable t,
java.lang.Object... arguments)
Builds a message with a throwable and arguments.
|
public static final BasicMessageBuilder INSTANCE
public java.lang.String buildMessage(char level,
java.lang.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 java.lang.String buildMessage(char level,
java.lang.String category,
int id,
java.lang.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 java.lang.String buildMessage(char level,
java.lang.String category,
int id,
java.lang.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 java.lang.String buildMessage(char level,
java.lang.String category,
int id,
java.lang.Throwable t,
java.lang.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.