ILogger Interface

The ABSuite.AccessLayer.Connector.Core namespace contains the ILogger interface that provides methods to log information to the Access Layer log file by using different methods for each severity level. The message parameter in each Log method is a function that takes a string to be logged.

For example,

LogInfo(() => string.Format("My connected session is: {0}", 
sessionId));

This shows the following entry in the Log file, assuming the variable sessionId contains the string “123”.

My connected session is: 123.

There are three log methods

The Error log level is always On by default, to capture any unexpected errors.

Namespace – ABSuite.AccessLayer.Connector.Core

Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)

Syntax

public interface ILogger