Logger - Global

Inbound email actions can use this JavaScript function to append messages to the email log.

The Logger class provides methods that add standard, warning, and error messages to the email log. The added message has its source set to email.<Sys ID of incoming email>.

Logger - log(String msg)

Appends the specified message to the email log.

Table 1. Parameters
Name Type Description
msg String Text to append to the email log. These should be information type messages.
Table 2. Returns
Type Description
void
logger.log("Some information");

Logger - logError(String msg)

Appends the specified error message to the email log file.

Table 3. Parameters
Name Type Description
msg String Error message to append to the email log
Table 4. Returns
Type Description
void
logger.logError("Some error");

Logger - logWarning(String msg)

Appends the specified warning message to the email log file.

Table 5. Parameters
Name Type Description
msg String Warning message to append to the email log
Table 6. Returns
Type Description
void
logger.logWarning("Some warning");