Class ServerLogger

Namespace
ESRI.Server.SOESupport
Assembly
ESRI.Server.SOESupport.dll

A class used to add messages to the server's log.

public sealed class ServerLogger
Inheritance
ServerLogger
Inherited Members

Constructors

ServerLogger()

Creates a new instance of the logger.

public ServerLogger()

Methods

LogMessage(msgType, string, int, double, string)

Logs a message.

public void LogMessage(ServerLogger.msgType msgType, string methodName, int msgCode, double elapsed, string msg)

Parameters

msgType ServerLogger.msgType

The log level for the message.

methodName string

The name of the method writing this message.

msgCode int

A unique identifier for the message.

elapsed double

The number of seconds elapsed.

msg string

The message to be written to the log.

LogMessage(msgType, string, int, string)

Logs a message.

public void LogMessage(ServerLogger.msgType msgType, string methodName, int msgCode, string msg)

Parameters

msgType ServerLogger.msgType

The log level for the message.

methodName string

The name of the method writing this message.

msgCode int

A unique identifier for the message.

msg string

The message to be written to the log.

LogRequest(string, string)

Logs the fact that a request has been received.

public void LogRequest(string methodName, string request)

Parameters

methodName string

The name of the method being invoked.

request string

The actual request. Its size will be logged.

LogResponse(string, byte[], double)

Logs a message.

public void LogResponse(string methodName, byte[] response, double elapsed)

Parameters

methodName string

The name of the method writing this message.

response byte[]

The actual response. Its size will be logged.

elapsed double

The number of seconds elapsed.

LogResponse(string, string, double)

Logs the fact that a response is being sent back to the client.

public void LogResponse(string methodName, string response, double elapsed)

Parameters

methodName string

The name of the method.

response string

The actual response. Its size will be logged.

elapsed double

The number of seconds it took to execute the method.