LogEvent Method

Summary

Writes a new event log.

Syntax
C#
VB
C++
public static void LogEvent( 
   string serverName, 
   string serverIPAddress, 
   string serverPort, 
   string clientIPAddress, 
   string clientPort, 
   DateTime dateTime, 
   EventLogEntryEventType eventType, 
   string channelID, 
   string description 
) 
  
Public Shared Sub LogEvent( _ 
   ByVal serverName As String, _ 
   ByVal serverIPAddress As String, _ 
   ByVal serverPort As String, _ 
   ByVal clientIPAddress As String, _ 
   ByVal clientPort As String, _ 
   ByVal dateTime As Date, _ 
   ByVal eventType As EventLogEntryEventType, _ 
   ByVal channelID As String, _ 
   ByVal description As String _ 
)  
public: 
static void LogEvent(  
   String^ serverName, 
   String^ serverIPAddress, 
   String^ serverPort, 
   String^ clientIPAddress, 
   String^ clientPort, 
   DateTime dateTime, 
   EventLogEntryEventType eventType, 
   String^ channelID, 
   String^ description 
)  

Parameters

serverName
The name of the server generating the event log.

serverIPAddress
The server IP address generating the event log.

serverPort
The server port number generating the event log.

clientIPAddress
The client IP address.

clientPort
The client port number.

dateTime
The date and time of the event log.

eventType
One of the EventLogEntryEventType values.

channelID
The client channel id.

description
The string to write to the event log.

Remarks

Calling this method will cause the EventLog event to be raised.

Any registered ILogginChannel will be notified for the event log by calling the ILogginChannel.WriteLog method

Example

For an example, refer to Leadtools.Jpip.Server.JpipServer.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Jpip.Server Assembly