English (English) - Change language

WriteToLog

What it does

Writes event data in to the log on the Application Server.

Definition

void WriteToLog( long clientTime,  [] records );
    

Parameters

Name Type Description
clientTime long

The data and time when the event occurred on the workstation. Use the following methods to convert the data (C#):

DateTime dtTime;
long lTime;
…
// conversion from DateTime to long
dTime = DateTime.FromFileTime(lTime);
…
// conversion from long to DateTime
lTime = dTime.ToFileTime();
        
records LogRecord[] A set of records, each describing one of the events to be written in the log on the Application Server

Note: Using both the clientTime and LogRecord.time parameters is needed for the following reasons:

  • Call of the LogRecord[] method can be deferred.
  • Local time on the client computer and the time on the server may differ. This error can be corrected if you know the local time on the client computer at the moment when the LogRecord[] method was called.

Returned value

None.

9/15/2020 9:42:43 AM


Please leave your feedback about this article