The PowerBuilder ErrorLogging class writes errors to %DJC_HOME%\logs\pb-server.log. To use PowerScript to create an instance of the class and to log messages, use the following syntax:
ErrorLogging logger getContextService("ErrorLogging", logger) logger.log("My Message")