BB FlashBack SDK: FBLogs

LogError

Description

This event handler is called by the FBEditor and FBRecorder classes when they encounter an error condition. It is also called when the FBLogs::AddError method is called.

Syntax

[C#/C++]
protected virtual void LogError(BSTR message)

[VB.NET]
Protected Overridable Sub LogError(ByVal message As String)

Parameter Description
message Text of the error message.

Remarks

Use this event handler to write debug and error information to a log file.

Note: calls to the event handlers are asynchronous - your code should use critical sections, semaphores or some other mechanism to ensure that writes to the log file are correctly synchronized.
 

Setting the event handler

In the samples below, fbLogSys is an instance of FBLogs, and fbLogSys_LogError is your event handling method. See the samples that come with the SDK for more examples.

[C#]
fbLogSys.LogError += new IFBLogEvents_LogErrorEventHandler(fbLogSys_LogError);
 

[VB]
AddHandler fbLogSys.LogError, AddressOf fbLogSys_LogError
 

[Delphi]
fbLogSys.OnLogError := fbLogSys_LogError;
 

[C++ Builder]
fbLogSys->OnLogError = fbLogSys_LogError;
 

See Also

Using the FBLogs class  FBLogs::AddError  FBLogs::LogInfo  FBLogs::LogWarning  FBLogs::Enabled