Please enable JavaScript to view this site.

QPR Knowledge Base 2019.1

Navigation: Developer's Guide > QPR API > The Object Model > QPR Modeling > PGApplication Commands

WriteLog

Scroll Prev Top Next More

Revision history:

Introduced in QPR 7.2.1

 

Writes an entry to the PGCMacroLog.txt log file.

 

Synopsis:

 

PGApplication.WriteLog(Module, Message, ErrorCode)

 

Parameters:

 

Module: String. Used to identify the location where the message was written or where some error occurred.

Message: String. Message text

ErrorCode: Integer. Value -1 indicates error that is written to log in all cases.

 

Required Rights:

 

None.

 

Return Values:

 

None.

 

Example Procedure:

 

PGApplication.WriteLog("openmodel", "model could not be opened", -1)