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.
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.
For an example, refer to Leadtools.Jpip.Server.JpipServer.
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
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7