public interface MessageLogger
| Modifier and Type | Method and Description |
|---|---|
MessageBuilder |
getMessageBuilder()
Gets the message builder used to build the messages.
|
void |
log(char level,
java.lang.String category,
int id)
Logs a message.
|
void |
log(char level,
java.lang.String category,
int id,
java.lang.Object... arguments)
Logs a message with arguments.
|
void |
log(char level,
java.lang.String category,
int id,
java.lang.Throwable t)
Logs a message with a throwable.
|
void |
log(char level,
java.lang.String category,
int id,
java.lang.Throwable t,
java.lang.Object... arguments)
Logs a message with a throwable and arguments.
|
void |
setMessageBuilder(MessageBuilder builder)
Sets the message builder used to build the messages.
|
MessageBuilder getMessageBuilder()
void setMessageBuilder(MessageBuilder builder)
builder - the message builder to set, cannot be null.void log(char level,
java.lang.String category,
int id)
level - the level of the message.category - the category of the message.id - the ID of the message.java.lang.NullPointerException - if the given category is null.MessageBuilder.buildMessage(char, String, int)void log(char level,
java.lang.String category,
int id,
java.lang.Throwable t)
level - the level of the message.category - the category of the message.id - the ID of the message.t - the throwable.java.lang.NullPointerException - if the given category is null.MessageBuilder.buildMessage(char, String, int, Throwable)void log(char level,
java.lang.String category,
int id,
java.lang.Object... arguments)
level - the level of the message.category - the category of the message.id - the ID of the message.arguments - the arguments.java.lang.NullPointerException - if the given category is null.MessageBuilder.buildMessage(char, String, int, Object...)void log(char level,
java.lang.String category,
int id,
java.lang.Throwable t,
java.lang.Object... arguments)
level - the level of the message.category - the category of the message.id - the ID of the message.t - the throwable.arguments - the arguments.java.lang.NullPointerException - if the given category is null.MessageBuilder.buildMessage(char, String, int, Throwable, Object...)