The Logger property returns the Logger object to the client.
Namespace – ABSuite.AccessLayer.Connector.Core
Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)
Syntax
ILogger Logger { get; }
Using the IConnection Interface for the Logger Property
The following code is an example of using the Logger property:
// Create a new connection to the AB Suite host system // Use the Access Layer API ConnectionFactory to create an instance of a Connection class // The log settings (level and logPath) can be initialized in the Create method ABSConnection = ConnectionFactory.Create(new Sample.Custom.DataModels.Core.IspecFactory(), level: "DEBUG", logPath: @"C:\Temp\MVC"); // Obtain the Logger object from the Connection ApplicationLogger = ABSConnection.Logger; // Log a message ApplicationLogger.LogInfo(() => string.Format("My Log Message."));