Click or drag to resize

Log Class

Logging class for ConneXion web services methods. Create a Log object then use LogMethodRequest()/LogMethodReply() to monitor and record method timings. The general format of each line is: [YYYY-MM-DD] [HH:MM:SS] [Client IP] [Unique Message ID] [Request|Reply] [Method Name] For example: 2005-11-07 00:04:03 206.196.21.144 632668907937265777 Request FindPoliciesByCriteria 2005-11-07 00:04:04 206.196.21.144 632668907937265777 Reply FindPoliciesByCriteria Success=True Number=0 Description="Found 1 Policies" Source= TAMErrorNumber= TAMSource= TAMDescription="" By matching unique message IDs, it is then possible to determine the amount of time it takes for a method to process a request.
Inheritance Hierarchy
SystemObject
  ConneXionLog

Namespace:  ConneXion
Assembly:  ConneXion (in ConneXion.dll) Version: 2020.0
Syntax
public class Log

The Log type exposes the following members.

Constructors
  NameDescription
Protected methodCode exampleLog
Clients cannot call default constructor.
Public methodCode exampleLog(String, String)
Reads boolean application settings sLogEnabledAppSetting and sLogFileNameAppSetting from Web.config file. If log is enabled, creates log file and writes a special log entry indicating the web services has been started.
Top
Methods
  NameDescription
Public methodCode exampleLogMethodReply
Log a method reply. Call this method when service is finished processing a method and is about to return the ConneXionResult object back to the client. The general format of each line is: [YYYY-MM-DD] [HH:MM:SS] [Client IP] [Unique Message ID] [Reply] [Method Name] [Success=True|False] [Description=] [Source=] [TAMErrorNumber=] [TAMSource=] [TAMDescription=] where Success, Description, Source, TAMErrorNumber, TAMSource, and TAMDescription are values from the ConneXionResult object to be returned to the client. For example: 2005-11-07 00:04:04 206.196.21.144 632668907937265777 Reply FindPoliciesByCriteria Success=True Number=0 Description="Found 1 Policies" Source= TAMErrorNumber= TAMSource= TAMDescription=""
Public methodCode exampleLogMethodRequest
Log a method request. Returns a unique message ID that is to be passed to LogMethodReply(). The general format of each line is: [YYYY-MM-DD] [HH:MM:SS] [Client IP] [Unique Message ID] [Request] [Method Name] For example: 2005-11-07 00:04:03 206.196.21.144 632668907937265777 Request FindPoliciesByCriteria
Public methodCode exampleLogMethodRequestArguments
Log a method request and its argument data. Returns a unique message ID that is to be passed to LogMethodReply(). The general format of each line is: [YYYY-MM-DD] [HH:MM:SS] [Client IP] [Unique Message ID] [Request] [Method Name] [Arguments Data] For example: 2005-11-07 00:04:03 206.196.21.144 632668907937265777 Request FindPoliciesByCriteria
Top
Remarks
See Also