LogQuery Object

Log Parser

LogQuery Object

The LogQuery object exposes the main API methods that execute a SQL-Like query and provides access to global parameters controlling the execution of a query.

The object is instantiated with the "MSUtil.LogQuery" ProgId.
The class name of the .NET COM wrapper for this object is "Interop.MSUtil.LogQueryClassClass".


Methods

Execute Executes a query and returns a LogRecordSet object that can be used to navigate through the query output records.
ExecuteBatch Executes a query and writes the query output records to an output format.

Properties

errorMessages Returns a collection of the error, parse error, and warning messages that occurred during the execution of a query.
inputUnitsProcessed Returns the total number of input records processed during the execution of a query.
lastError Returns -1 if errors, parse errors, or warnings occurred during the execution of the query; 0 otherwise.
maxParseErrors Sets and gets the maximum number of parse errors that can occur during the execution of a query before aborting the query execution.
outputUnitsProcessed Returns the total number of output records sent to an output format during the execution of a query.
versionMaj Returns the "major" component of the version of the Log Parser scriptable COM components.
versionMin Returns the "minor" component of the version of the Log Parser scriptable COM components.


Examples

JScript example:

var oLogQuery = new ActiveXObject("MSUtil.LogQuery");

VBScript example:

Dim oLogQuery
Set oLogQuery = CreateObject("MSUtil.LogQuery")


See also:

LogRecordSet Object
Input Format Objects
Output Format Objects
Log Parser COM API Overview
C# Example


© 2004 Microsoft Corporation. All rights reserved.