Log Event
Provides logging information.
Syntax
public event OnLogHandler OnLog; public delegate void OnLogHandler(object sender, MllpserverLogEventArgs e); public class MllpserverLogEventArgs : EventArgs { public string ConnectionId { get; } public int LogLevel { get; } public string Message { get; } public string LogType { get; } }
Public Event OnLog As OnLogHandler Public Delegate Sub OnLogHandler(sender As Object, e As MllpserverLogEventArgs) Public Class MllpserverLogEventArgs Inherits EventArgs Public ReadOnly Property ConnectionId As String Public ReadOnly Property LogLevel As Integer Public ReadOnly Property Message As String Public ReadOnly Property LogType As String End Class
Remarks
This event fires when processing messages and provides logging information. The LogLevel configuration setting specifies the level of detail that is logged.
ConnectionId reflects the Id of the connection to which the log message pertains.
LogType specifies the type of log message. Possible values are:
- INFO
- VERBOSE
- DEBUG
LogMessage is the log message.