> ## 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.

# StartLogging Method of the Engine Object

This method enables logging of errors, warnings and method calls.

## Syntax

### C++

```cpp theme={null}
HRESULT StartLogging(
  BSTR         LogFileName,
  VARIANT_BOOL WriteMethodCalls
);
```

### C\#

```csharp theme={null}
void StartLogging(
  string LogFileName,
  bool   WriteMethodCalls
);
```

### Visual Basic .NET

```vb theme={null}
Sub StartLogging( _
  LogFileName As String, _
  WriteMethodCalls As Boolean _
)
```

## Parameters

LogFileName

\[in] This parameter contains the full path to the log file. If the file does not exist, it will be created.

WriteMethodCalls

\[in] This parameter enables logging calls of ABBYY FineReader Engine methods to the log file. The format is as follows:

\<time of call>, \<duration of execution (in ms)>, \<Interface::Method (parameter1, … )>

For example, 12:40:31.254, 17 ms, IRecognizerParams::put\_OneWordPerLine( VARIANT\_TRUE )

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

The log file can contain a list of objects that have not been deleted before the deinitialization of the [Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface) object. To do this, do not call the [StopLogging](/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/stoplogging-method) method which disables logging, before the deinitialization.

## See also

[Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface)

[EnableEngineLogging](/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/enableenginelogging-method)

[EnableProcessorLogging](/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/enableprocessorlogging-method)

[StopLogging](/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/stoplogging-method)
