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
msgTypeServerLogger.msgTypeThe log level for the message.
methodNamestringThe name of the method writing this message.
msgCodeintA unique identifier for the message.
elapseddoubleThe number of seconds elapsed.
msgstringThe 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
msgTypeServerLogger.msgTypeThe log level for the message.
methodNamestringThe name of the method writing this message.
msgCodeintA unique identifier for the message.
msgstringThe 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
methodNamestringThe name of the method being invoked.
requeststringThe actual request. Its size will be logged.
LogResponse(string, byte[], double)
Logs a message.
public void LogResponse(string methodName, byte[] response, double elapsed)
Parameters
methodNamestringThe name of the method writing this message.
responsebyte[]The actual response. Its size will be logged.
elapseddoubleThe 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)