Leadtools.Jpip.Server Requires JPIP Module license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
LogEvent Method
See Also 
Leadtools.Jpip.Logging Namespace > EventLogger Class : LogEvent Method



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.
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.
Writes a new event log.

Syntax

Visual Basic (Declaration) 
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 _
) 
Visual Basic (Usage)Copy Code
Dim serverName As String
Dim serverIPAddress As String
Dim serverPort As String
Dim clientIPAddress As String
Dim clientPort As String
Dim dateTime As Date
Dim eventType As EventLogEntryEventType
Dim channelID As String
Dim description As String
 
EventLogger.LogEvent(serverName, serverIPAddress, serverPort, clientIPAddress, clientPort, dateTime, eventType, channelID, description)
C# 
public static void LogEvent( 
   string serverName,
   string serverIPAddress,
   string serverPort,
   string clientIPAddress,
   string clientPort,
   DateTime dateTime,
   EventLogEntryEventType eventType,
   string channelID,
   string description
)
C++/CLI 
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.

Example

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

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

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Jpip.Server requires a JPIP Module and a server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features