Foundations Apex API Developer Reference

fferpcore.MessagingSettingsService

global with sharing class MessagingSettingsService

A messaging settings service structure.

Properties

Name Type Description
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

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

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

Name Type Description
loggingLevel String The kind of logging level we want to use.

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

fferpcore.MessagingSettingsService.setLoggingLevel(fferpcore.MessagingSettingsService.LOGGING_LEVEL_ALL);

String result = fferpcore.MessagingSettingsService.getLoggingLevel();
© Copyright 2009–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.