Kbase 20120: WebSpeed messages - Writing to Log File
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  13/12/2007 |
|
Status: Unverified
GOAL:
How to write additional application messages into the WebSpeed log files?
FIX:
During a WebSpeed request, all runtime errors are directed to the server log file and set the -weblogerror parameter into the WebSpeed agent startup parameters (set to "on" by default). If the '-weblogerror' parameter is omitted, all the errors are displayed in the browser window.
There is no option to select the logging programmer's error messages
to the server log file however.
The alternative to writing to the server log file is writing messages to your own log file. Do this by defining another stream to write to an output file in the same manner it is used in conventional Progress 4GL. For example:
<script language="SpeedScript">
FIND FIRST Customer.
DEFINE STREAM MyStream.
DEFINE STREAM Ostream.
OUTPUT STREAM MyStream TO "WEB".
OUTPUT STREAM Ostream to 'webout.log'.
DISPLAY STREAM MyStream Name Phone.
DISPLAY STREAM Ostream 'Writing to output log file
successful'.
</script>