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
The ILogger type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | LogDebug(FuncString) |
The supplied message will be logged using a "Debug" level scope
|
![]() | LogDebug(String, FuncObject) |
This method is used to log the contents of a specified DataModel instance
|
![]() | LogError(FuncException) |
The supplied exception will be logged using an Error level scope.
|
![]() | LogError(FuncString) |
The supplied message will be logged using an "Error" level scope
|
![]() | LogInfo |
The supplied message will be logged using an "Information" level scope
|
See Also