public class LogMessenger extends Object
| Constructor and Description |
|---|
LogMessenger()
Instantiates a log messenger.
|
LogMessenger(LogMessageHandler handler,
String sAppContext)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(LogMessageHandler handler,
String sAppContext)
Add a message handler.
|
void |
flush()
Flush target.
|
int |
getSeverity()
As the messenger sends messages we keep track of the highest severity
message sent.
|
void |
removeStoredMessages() |
void |
sendMessage(int nId,
String sText,
int eSeverity)
Send message to target.
|
void |
sendMessage(LogMessage message)
Send message to target.
|
List<LogMessage> |
storedMsgArray() |
void |
updateMessaging(Model model)
Check through the messaging elements in the configuration model and add
them to a cache.
|
public LogMessenger()
public LogMessenger(LogMessageHandler handler, String sAppContext)
handler - pointer to a message handlersAppContext - a string representing the application context/namepublic void addHandler(LogMessageHandler handler, String sAppContext)
handler - a message handlersAppContext - a string representing the application context/namepublic int getSeverity()
public void removeStoredMessages()
public void flush()
public void sendMessage(int nId,
String sText,
int eSeverity)
nId - the message IdsText - the message texteSeverity - the message severitypublic void sendMessage(LogMessage message)
message - the messagepublic List<LogMessage> storedMsgArray()
public void updateMessaging(Model model)
model - the configuration model containing the messaging informationInvalidOptionValueException - thrown if the user specified an invalid severity in the
configuration options.Copyright © 2010 - 2020 Adobe. All Rights Reserved