Consultor Eletrônico



Kbase P105768: In batch mode (-b) the messages view-as alert-box are not written into the output log
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/02/2010
Status: Verified

SYMPTOM(s):

message view-as alert-box not written to log file

batch procedure used with -b

startup parameter: -clientlog debug.log -debugalert -logentrytypes 4GLMessages:3


prowin32 -b -pf test.pf -p test.p > test.log

/*Example code used: */
MESSAGE "Appears in a log".
MESSAGE "DOES NOT appear in a log" VIEW-AS ALERT-BOX.
MESSAGE "Appears in a log again".

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.x

CAUSE:


If logging is turned on via -logentrytypes, etc, Progress will write the information you request to the client log file specified by -clientlog. It will never write the message to two places. So if it writes to the client log file, it will not write to standard out (test.log in the example case).

FIX:


Either don't use the logging feature at all or specify the same output file for -clientlog as the file you are diverting messages to. i.e., specify -clientlog test.log. In this case you will get all the messages in test.log.