Putting messages into the EAServer log – PB Docs 125

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:

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.

note.png Automatic 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.

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.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x