Interface ILogger
Logs errors that occur during execution of a page.
Namespace: Softadmin.Api.Diagnostics
Assembly: Softadmin.Api.dll
Syntax
public interface ILogger
Remarks
The logger ensures that UserId, MenuItemId, etc. are properly logged.
Methods
LogError(Exception)
Logs an exception that has occurred.
Declaration
void LogError(Exception error)
Parameters
Type | Name | Description |
---|---|---|
Exception | error | The exception. If the exception was thrown by an IDbRequest its SQL will be logged. |
LogError(String, Exception, IDbRequest)
Logs an exception that has occurred.
Declaration
void LogError(string message, Exception error = null, IDbRequest request = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Custom log message. |
Exception | error | The exception. May be |
IDbRequest | request | The request that returned the data that is to blame for the error.
It's SQL will be logged. May be |