public class MessageListApplicationLogger extends AbstractApplicationLogger
ApplicationLogger
that stores all messages into a list.Constructor and Description |
---|
MessageListApplicationLogger() |
MessageListApplicationLogger(java.util.List<ApplicationLoggerMessage> list) |
Modifier and Type | Method and Description |
---|---|
void |
addListToLogger(ApplicationLogger otherLogger)
Adds all messages stored in this list to the other logger.
|
void |
addMessage(ApplicationLoggerMessage message)
Outputs a usual message to the user.
|
protected java.util.List<ApplicationLoggerMessage> |
getList() |
java.util.List<ApplicationLoggerMessage> |
getMessageList() |
addError, addError, addError, addError, addMessage, addMessage, addWarning, addWarning
public MessageListApplicationLogger()
public MessageListApplicationLogger(java.util.List<ApplicationLoggerMessage> list)
protected java.util.List<ApplicationLoggerMessage> getList()
public java.util.List<ApplicationLoggerMessage> getMessageList()
public void addMessage(ApplicationLoggerMessage message)
ApplicationLogger
public void addListToLogger(ApplicationLogger otherLogger)
Note that the events of the specified logger may not be in chronological order anymore, depending on the time-stamps of the messages in this and in the other logger.
otherLogger
- the logger to write the messages to