共用方式為


ServiceExceptionLogger Class

Definition

Provides a global Web API unhandled exception logger which is called when unhandled exceptions propagate all the way to Web API infrastructure.

public class ServiceExceptionLogger : System.Web.Http.ExceptionHandling.ExceptionLogger
type ServiceExceptionLogger = class
    inherit ExceptionLogger
Public Class ServiceExceptionLogger
Inherits ExceptionLogger
Inheritance
System.Web.Http.ExceptionHandling.ExceptionLogger
ServiceExceptionLogger

Constructors

ServiceExceptionLogger()

Methods

Log(ExceptionLoggerContext)

Logs the unhandled exception using LogCategories which makes it show up in the application log unless the application has been configured to not log such events.

Applies to