Log Event

Fired with log information while processing a message.


public event OnLogHandler OnLog;

public delegate void OnLogHandler(object sender, As4clientLogEventArgs e);

public class As4clientLogEventArgs : EventArgs {
  public string LogType { get; }
  public string LogMessage { get; }
Public Event OnLog As OnLogHandler

Public Delegate Sub OnLogHandler(sender As Object, e As As4clientLogEventArgs)

Public Class As4clientLogEventArgs Inherits EventArgs
  Public ReadOnly Property LogType As String
  Public ReadOnly Property LogMessage As String
End Class


This event fires once for each log message generated by the component. The verbosity is controlled by the LogLevel setting.

Log messages available through this event correspond to log files written to LogDirectory. This event provides a way to obtain log messages without relying on files on disk. This event fires regardless of the value of LogDirectory (i.e. when LogDirectory is empty the event will still fire).

The LogMessage event parameter holds the raw log data.

The LogType event parameter indicates the type of log. Possible values are:

"INFO" Information about the status of the process.
"ERROR" An error was encountered.
"DEBUG" Debug information.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 .NET Edition - Version 20.0 [Build 8162]