briddums
briddums

Reputation: 1846

Progress-4GL Writing to log file

When running a progress-4gl program, I am able to write to a log file using the log-manager. However, when writing out message statements they only appear when I use message view-as alert-box. ie:

log-manager:logfile-name = "queue.p"
message "this will not appear".
message "this will appear" view-as alert-box.

Will show up in the log file as:

[12/05/10@09:03:21.154-0700] P-11993170 T-000001 1 4GL -- this will appear

Is there any way I can force the log-manager to write out message statements that do not include view-as alert-box? Our legacy code uses the message statement everywhere and I would prefer to not have to go through all related libraries updating it.

Upvotes: 1

Views: 5158

Answers (3)

firhang
firhang

Reputation: 254

you should use in this case a Batch startup parameter. -b then will no messages displayed (except errors).

prowin32.exe -p c:\test.p -b

you can define, where should be the messages logged. then will not displayed the errors too. for example:

prowin32.exe -p c:\test.p -b > c:\Test.txt

Upvotes: 1

Fabian Frank
Fabian Frank

Reputation: 495

I fear getting messages (without "VIEW-AS ALERT-BOX") to the clientlog file is not possible.

Progress help says: "OpenEdge writes all ABL VIEW-AS ALERT-BOX messages to the log file". (LOG-ENTRY-TYPES attribute > 4GLMessages).

Upvotes: 2

Tim Kuehn
Tim Kuehn

Reputation: 3251

Are you thinking of something like the LOG-MANAGER:WRITE-MESSAGE( ) method?

Upvotes: 1

Related Questions