Kbase P105065: Can you dynamically change where the agent writes messages
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/7/2005 |
|
Status: Unverified
GOAL:
Can you dynamically change where the agent writes messages
GOAL:
Can you change the log file name after the ubrokers file has been read
FIX:
You can not dynamically change where the agents writes the messages to after the ubrokers file has been read.
You can write your own messages to a log file by defining another stream to write to in the same manner used in conventional Progress 4GL. For Example:
<script language="SpeedScript">
DEFINE STREAM MyStream.
DEFINE STREAM Ostream.
OUTPUT STREAM MyStream TO "WEB".
OUTPUT STREAM Ostream to 'webout.log'.
FIND FIRST Customer.
DISPLAY STREAM MyStream Name Phone.
DISPLAY STREAM Ostream 'Writing to output log file successful'.
</script>