Table of Contents

KVSMEDProcessLogLib

Procedures

StartLog(Integer, Integer, Boolean, Boolean, Boolean) :

Summary: Starts the application log for the specified object.

procedure StartLog(ObjectType: Integer; ObjectID: Integer; ShowError: Boolean; CreateLog: Boolean; ShowWindow: Boolean): 

Parameters:

  • ObjectType: The type of the calling object (e.g., 3=Report, 5=Codeunit).
  • ObjectID: The ID of the calling object.
  • ShowError: Specifies whether errors should be displayed to the user.
  • CreateLog: Specifies whether log entries should be created.
  • ShowWindow: Specifies whether a progress window should be shown.

CreateLogEntryByProcessPeriod(Record KVSMEDProcessPeriod, Text, Boolean) :

Summary: Creates a log entry for the specified process period.

procedure CreateLogEntryByProcessPeriod(ProcessPeriod: Record "KVSMEDProcessPeriod"; Text: Text; IsError: Boolean): 

Parameters:

  • ProcessPeriod: The process period record to log for.
  • Text: The log message text.
  • IsError: Specifies whether the log entry represents an error.

StopLog() :

Summary: Stops the application log and finalizes all open document logs.

procedure StopLog():