public class MessageListApplicationLogger extends AbstractApplicationLogger
ApplicationLogger
that stores all messages into a list.Constructor and Description |
---|
MessageListApplicationLogger() |
MessageListApplicationLogger(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 List<ApplicationLoggerMessage> |
getList() |
List<ApplicationLoggerMessage> |
getMessageList() |
addError, addError, addError, addError, addMessage, addMessage, addWarning, addWarning
public MessageListApplicationLogger()
public MessageListApplicationLogger(List<ApplicationLoggerMessage> list)
protected List<ApplicationLoggerMessage> getList()
public 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