ILogger Interface

The ILogger interface provides methods to log information to the Access Layer Log file, using different severity levels. The message parameter in each Log method can be declared using a format that allows value substitution. For example: LogInfo("My connected session is: {1}",sessionId}; This will show the following entry in the Log file, assuming the variable sessionId contains the string "123": My connected session is: 123

Namespace:  ABSuite.AccessLayer.Connector.Core
Assembly:  Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public interface ILogger

The ILogger type exposes the following members.

Methods

  NameDescription
Public methodLogDebug(FuncString)
The supplied message will be logged using a "Debug" level scope
Public methodLogDebug(String, FuncObject)
This method is used to log the contents of a specified DataModel instance
Public methodLogError(FuncException)
The supplied exception will be logged using an Error level scope.
Public methodLogError(FuncString)
The supplied message will be logged using an "Error" level scope
Public methodLogInfo
The supplied message will be logged using an "Information" level scope
Top
See Also

Reference