This document is archived and information here might be outdated.  Recommended version.


IServerLogQuery Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Server)  

IServerLogQuery Interface

Provides access to members that configure a query to the ArcGIS Server logs.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Read/write property EndTime The end time in the ArcGIS Server logs at which to end the query.
Read/write property Level The log level at which to query (1-5).
Read/write property Machine The machine name for which to query.
Read/write property MaxRecords The maximum number of records to retrieve with the query.
Read/write property StartIndex The starting index at which to start retrieving records from the query.
Read/write property StartTime The start time in the ArcGIS Server logs at which to begin the query.
Read/write property Target The log target name.

Remarks

The IServerLogQuery interface is retrieved from the CreateQuery method of the IServerLog interface. After populating its properties, the IServerLogQuery interface is used as an argument to the GetLogRecords method of the IServerLog interface.

 

The StartTime and EndTime properties can be set programmatically (i.e. not hard coded) by getting a time interval from the IServerTimeRange interface via the IServerStatistics interface (see code example).