LEADTOOLS JPEG 2000 (Leadtools.Jpip.Server assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
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.

The LogEvent Method includes members that are available as an add-on to the LEADTOOLS Imaging Pro, Document, and Medical Imaging toolkits.

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 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

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