This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IS > IServerLogQuery Interface (ArcObjects .NET 10.5 SDK) |
Provides access to members that configure a query to the ArcGIS Server logs.
Description | ||
---|---|---|
EndTime | The end time in the ArcGIS Server logs at which to end the query. | |
Level | The log level at which to query (1-5). | |
Machine | The machine name for which to query. | |
MaxRecords | The maximum number of records to retrieve with the query. | |
StartIndex | The starting index at which to start retrieving records from the query. | |
StartTime | The start time in the ArcGIS Server logs at which to begin the query. | |
Target | The log target name. |
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).