project BLF > class BBaseDaemonProcessor > method SetMessageInDaemonLog
Description
Produce a message in the daemon log file
Parameters
icMessage | input | character | Message to be put in the output logging |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
BLF
QadFinancials
program code (program1/bbasedaemonprocessor.p)
assign oiReturnStatus = -98.
output stream sLogs to value(vcFcDaemonLogFile) append.
put stream sLogs unformatted
vcFcDaemonProcessHostName + ":" + string(viFcDaemonProcessId) + " : ":U + string(now) + " : ":U + icMessage skip.
for each tFcMessages:
put stream sLogs unformatted
(if tFcMessages.tcFcType = "W"
then "Warning = "
else "Error = ")
tFcMessages.tcFcMessage skip
tFcMessages.tcFcMsgNumber
skip.
delete tFcMessages.
end.
output stream sLogs close.
assign oiReturnStatus = 0.