fferpcore.MessagingSettingsService
global with sharing class MessagingSettingsService
A messaging settings service structure.
Properties
LOGGING_LEVEL_ALL |
String |
Used to store every message sent by the Foundations messaging engine.
|
LOGGING_LEVEL_ERRORS |
String |
Used to store only failed messages sent by the Foundations messaging engine.
|
LOGGING_LEVEL_NONE |
String |
Used to prevent any messages being stored which have been sent by the Foundations messaging engine.
|
LOGGING_LEVEL_DEFAULT |
String |
The default state of the Foundations messaging engine.
|
Methods
getLoggingLevel
global static String getLoggingLevel()
This method returns the current logging level of the Foundations messaging engine. The current logging level determines what kind of messages are stored.
Return Value
This service returns a String object.
Sample Code
1 2 3 4 5 | String result = fferpcore.MessagingSettingsService.getLoggingLevel();
|
setLoggingLevel
global static void setLoggingLevel(String loggingLevel)
This method sets the current logging level of the Foundations messaging engine. The current logging level determines what kind of messages are stored.
Input Parameters
loggingLevel |
String |
The kind of logging level we want to use. |
Sample Code
1 2 3 4 5 6 7 | fferpcore.MessagingSettingsService.setLoggingLevel(fferpcore.MessagingSettingsService.LOGGING_LEVEL_ALL);
String result = fferpcore.MessagingSettingsService.getLoggingLevel();
|
|