Description

A Log file is generated if a LogIdentifier is provided, no log file is created if the LogIdentifier is Nothing. Please see Log Files for more information

Syntax

Sub WriteLog(LogIdentifier As Object, Message As Object)

Parameters

Name

Data Type

Description

LogIdentifier

String or TypeValue

Used to determine the filename of the log file. To create a log file for the current activity pass in provided ActivityID

Message

Object

A String or Object to write the log file. If an object is specified, it must be convertible to a String

Return

No Return value

Example

'create PentagonDOCS Notifications Processor object

Set ExDOCSNotification = GetExtensionObject("PentagonDOCS.Notifications")


'write to log

ExDOCSNotification.WriteLog ActivityID, "Log Message 1"

ExDOCSNotification.WriteLog ActivityID, "Log Message 2"

ExDOCSNotification.WriteLog ActivityID, "Log Message 3"



The resulting log file would contain the following information:

02/10/2019 22:48:48 Log Message 1

02/10/2019 22:48:48 Log Message 2

02/10/2019 22:48:48 Log Message 3