ExceptionServices.GetLogger Method
Namespace: System.Web.Http.ExceptionHandling
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
![]() ![]() |
GetLogger(HttpConfiguration) | Gets an exception logger that calls all registered logger services. |
![]() ![]() |
GetLogger(ServicesContainer) | Gets an exception logger that calls all registered logger services. |
See Also
ExceptionServices Class
System.Web.Http.ExceptionHandling Namespace
Return to top
ExceptionServices.GetLogger Method (HttpConfiguration)
Gets an exception logger that calls all registered logger services.
Syntax
public static IExceptionLogger GetLogger(
HttpConfiguration configuration
)
public:
static IExceptionLogger^ GetLogger(
HttpConfiguration^ configuration
)
static member GetLogger :
configuration:HttpConfiguration -> IExceptionLogger
Public Shared Function GetLogger (
configuration As HttpConfiguration
) As IExceptionLogger
Parameters
configuration
Type: System.Web.Http.HttpConfigurationThe configuration.
Return Value
Type: System.Web.Http.ExceptionHandling.IExceptionLogger
A composite logger.
Return to top
ExceptionServices.GetLogger Method (ServicesContainer)
Gets an exception logger that calls all registered logger services.
Syntax
public static IExceptionLogger GetLogger(
ServicesContainer services
)
public:
static IExceptionLogger^ GetLogger(
ServicesContainer^ services
)
static member GetLogger :
services:ServicesContainer -> IExceptionLogger
Public Shared Function GetLogger (
services As ServicesContainer
) As IExceptionLogger
Parameters
services
Type: System.Web.Http.Controllers.ServicesContainerThe services container.
Return Value
Type: System.Web.Http.ExceptionHandling.IExceptionLogger
A composite logger.
Return to top