Logging.FlushLog Method

Applies To: Windows 8.1

Commits all of the accumulated log messages to disk.

Namespace: Microsoft.Assessments
Assembly: Microsoft.Assessments.Core (in Microsoft.Assessments.Core.dll)

Usage

'Usage
Dim instance As Logging

instance.FlushLog

Syntax

'Declaration
Public Sub FlushLog
public void FlushLog ()
public:
void FlushLog ()
public void FlushLog ()
public function FlushLog ()

Remarks

AXE’s ETW session stores log messages in a circular buffer in memory. When the buffer gets full, the log messages are committed to disk. This method forces the buffers to be committed to disk so that the information is not lost.

This method should only be called in situations where there is a danger of the data being lost due to a loss of power or an unsuccessful shutdown.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 8.1

See Also

Reference

Logging Class
Logging Members
Microsoft.Assessments Namespace