Table of Contents

Class DefaultExceptionSanitizer

Namespace
AnyProtocol.Logging.Abstraction
Assembly
AnyProtocol.Logging.Abstraction.dll

Default exception sanitizer that never copies exception messages, data, or stack traces.

public sealed class DefaultExceptionSanitizer : IExceptionSanitizer
Inheritance
DefaultExceptionSanitizer
Implements
Inherited Members

Constructors

DefaultExceptionSanitizer()

public DefaultExceptionSanitizer()

Methods

Sanitize(Exception, ExceptionLoggingMode)

Creates safe exception metadata for the selected logging mode.

public SanitizedException Sanitize(Exception exception, ExceptionLoggingMode mode)

Parameters

exception Exception
mode ExceptionLoggingMode

Returns

SanitizedException