WriteToLog

What it does

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

Definition

void WriteToLog( long clientTime, LogRecord [] 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.

25.05.2023 7:55:02

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.