ExceptionLogger Class

 

Represents an unhandled exception logger.

Namespace:   System.Web.Http.ExceptionHandling
Assembly:  System.Web.Http (in System.Web.Http.dll)

Inheritance Hierarchy

System.Object
  System.Web.Http.ExceptionHandling.ExceptionLogger

Syntax

public abstract class ExceptionLogger : IExceptionLogger
public ref class ExceptionLogger abstract : IExceptionLogger
[<AbstractClass>]
type ExceptionLogger = 
    class
        interface IExceptionLogger
    end
Public MustInherit Class ExceptionLogger
    Implements IExceptionLogger

Constructors

Name Description
System_CAPS_protmethod ExceptionLogger()

Initializes a new instance of the ExceptionLogger class.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Log(ExceptionLoggerContext)

When overridden in a derived class, logs the exception synchronously.

System_CAPS_pubmethod LogAsync(ExceptionLoggerContext, CancellationToken)

When overridden in a derived class, logs the exception asynchronously.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ShouldLog(ExceptionLoggerContext)

Determines whether the exception should be logged.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IExceptionLogger.LogAsync(ExceptionLoggerContext, CancellationToken)

Extension Methods

Name Description
System_CAPS_pubmethod LogAsync(ExceptionContext, CancellationToken)

Calls an exception logger.(Defined by ExceptionLoggerExtensions.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Http.ExceptionHandling Namespace

Return to top