com.esri.arcgis.server
Interface IServerLog

All Superinterfaces:
Serializable
All Known Implementing Classes:
IServerLogProxy, ServerLogImpl

public interface IServerLog
extends Serializable

Provides access to members that query and retrieve log records.

Remarks

The IServerLog interface is used to query and retrieve records from the logs on disk. A reference to this interface is acquired through the ServerLog property of the IServerObjectAdmin2 interface.

The IServerLog interface has two methods. The CreateQuery method returns an IServerLogQuery interface that can be populated and used as an argument to the GetLogRecords method which returns a string containing the logs matching the query parameters.

Product Availability

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


Method Summary
 IServerLogQuery createQuery()
          Creates an IServerLogQuery for interrogating the ArcGIS server logs.
 String getLogRecords(IServerLogQuery pQuery)
          Retrieves ArcGIS Server log records using an IServerLogQuery.
 

Method Detail

createQuery

IServerLogQuery createQuery()
                            throws IOException,
                                   AutomationException
Creates an IServerLogQuery for interrogating the ArcGIS server logs.

Remarks

The CreateQuery method returns an IServerLogQuery interface that can be populated and used as an argument to the GetLogRecords method.

Product Availability

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

Returns:
A reference to a com.esri.arcgis.server.IServerLogQuery
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLogRecords

String getLogRecords(IServerLogQuery pQuery)
                     throws IOException,
                            AutomationException
Retrieves ArcGIS Server log records using an IServerLogQuery.

Remarks

The GetLogRecords method accepts an IServerLogQuery and returns a string containing the logs matching the IServerLogQuery query parameters.

Product Availability

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

Parameters:
pQuery - A reference to a com.esri.arcgis.server.IServerLogQuery (in)
Returns:
The results
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.