• Api Documentation
Show / Hide Table of Contents
  • Softadmin.Api
    • AdminMessageException
    • CustomComponent
    • ICookies
    • IEnvironment
    • IForwardState
    • IHttpHeaders
    • IParameters
    • ISessionVariables
    • ISystemSettings
    • Plugin
  • Softadmin.Api.Database
    • IDbRequest
    • IDbRequestFactory
  • Softadmin.Api.Diagnostics
    • ILogger
  • Softadmin.Api.Login
    • IUserState
    • LoginPlugin
    • PostLoginPlugin
    • PreLoginPlugin
    • UserAuthenticationPlugin
  • Softadmin.Api.Logout
    • LogoutPlugin
  • Softadmin.Api.Page
    • ICustomPage
    • PagePlugin
  • Softadmin.Api.Ui
    • IDebugWindow
    • IProgressWindow

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
System.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.

System.Exception error

The exception. May be null.

IDbRequest request

The request that returned the data that is to blame for the error. It's SQL will be logged. May be null.

Back to top Generated by DocFX