> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LogRecord

> LogRecord data type in the ABBYY FlexiCapture Web Services API: stores an event log entry with its type, session, role, project, batch, document, and timestamp.

## What it does

The **LogRecord** data type stores error records.

## Fields

<table width="100%"><tbody><tr><td><p><strong>Name</strong></p></td><td><p><strong>Type</strong></p></td><td><p><strong>Description</strong></p></td></tr><tr><td><p>Type</p></td><td><p>int</p></td><td><p>The type of the error record. Possible values: see <a href="/flexi-capture/api/structures/t-log-record-type">LogRecordType</a>.</p></td></tr><tr><td><p>SessionId</p></td><td><p>int</p></td><td><p>The ID of the connection to the Application Server</p></td></tr><tr><td><p>MachineId</p></td><td><p>string</p></td><td><p>The ID of the workstation</p></td></tr><tr><td><p>RoleId</p></td><td><p><a href="/flexi-capture/api/structures/t-role-type">RoleType</a>\[]</p></td><td><p>The ID of the user's role</p></td></tr><tr><td><p>TaskId</p></td><td><p>int</p></td><td><p>The ID of the task</p></td></tr><tr><td><p>ProjectId</p></td><td><p>int</p></td><td><p>The ID of the project</p></td></tr><tr><td><p>BatchId</p></td><td><p>int</p></td><td><p>The ID of batch</p></td></tr><tr><td><p>DocumentId</p></td><td><p>int</p></td><td><p>The ID of the document</p></td></tr><tr><td><p>PageId</p></td><td><p>int</p></td><td><p>The ID of the page</p></td></tr><tr><td><p>Comment</p></td><td><p>string</p></td><td><p>A brief description of the event</p></td></tr><tr><td><p>Details</p></td><td><p>string</p></td><td><p>A full description of the event</p></td></tr><tr><td><p>Time</p></td><td><p>long</p></td><td><p>The date and time the method was called on the workstation.</p><p>To convert values, use the following methods (C#):</p><pre><code>DateTime dtTime;
long lTime;
...
// conversion from DateTime to long
dTime = DateTime.FromFileTime(lTime);
...
// conversion from long to DateTime
lTime = dTime.ToFileTime();</code></pre></td></tr></tbody></table>
