Putting messages into the EAServer log
To record errors generated by PowerBuilder objects running
in EAServer to the EAServer log, create an instance
of the ErrorLogging service context object and invoke its log method.
For example:
1 |
ErrorLogging inv_el<br>this.GetContextService("ErrorLogging", inv_el)<br>inv_el.log("Write this string to log") |
You can use the ErrorLogging service to provide detailed information
about the context of a system or runtime error on the server. This
information is useful to system administrators and developers in
resolving problems.
While you are developing components, you can use the ErrorLogging
service to trace the execution of your component. For example, you
can write a message to the log when you enter and exit functions.
The message can identify the name of the component, whether it is
entering or exiting a function, and which function it is in.

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.
When you use the XSL-FO technique to generate a PDF file,
detailed informational and warning messages are sent to the log.
You can suppress these messages by setting the PB_FOP_SUPPRESSLOG
environment variable to 1.