Recording errors in a log file

To record errors generated by COM objects running in COM+ to the Windows system application log, create an instance of the ErrorLogging service context object and invoke its log method. For example:

ErrorLogging el
this.GetContextService("ErrorLogging", el)
el.log("Write this string to log")

NoteAutomatic recording of exception information Information about the exception type and location of an exception caused by a PowerBuilder component running on the server is recorded automatically in the server log. It is no longer necessary to invoke the error logging service to obtain minimal information about these exceptions.