BB FlashBack SDK: FBLogs

LogWarning

Description

This event handler is called by the FBEditor and FBRecorder classes when they want to write warning information to a log file. It is also called when the FBLogs::AddWarning method is called.

Syntax

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

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

Parameter Description
message Text of the warning message.

Remarks

Use this event handler to write debug 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_LogWarning is your event handling method. See the samples that come with the SDK for more examples.

[C#]
fbLogSys.LogWarning += new IFBLogEvents_LogWarningEventHandler(fbLogSys_LogWarning);
 

[VB]
AddHandler fbLogSys.LogWarning, AddressOf fbLogSys_LogWarning
 

[Delphi]
fbLogSys.OnLogWarning := fbLogSys_LogWarning;
 

[C++ Builder]
fbLogSys->OnLogWarning = fbLogSys_LogWarning;
 

See Also

Using the FBLogs class  FBLogs::AddWarning  FBLogs::LogError  FBLogs::LogInfo  FBLogs::Enabled