GetLogOption Function

Action

Retrieves the current setting whether to generate log files (.log), and if so, which kind of information to write to the files. Log files contain information about timers, transactions performed by a user, and function calls invoked by the transactions.

Include file

Kernel.bdh

Syntax

GetLogOption(): number;

Return value

Current logging option. See the SetLogOption function for a description of all flags this function may return.

Example

dcltrans
  transaction TMain
  var
    nOption: number;
  begin
    nOption := GetLogOption();
    if nOption & OPT_LOG_TRANSACTIONS = OPT_LOG_TRANSACTIONS then
      write("transactions are included in the log file")
    else
      write("transactions are not included in the log file")
    end;
  writeln;
end TMain;