Edit

Share via


LogFormatter.SetExceptionDecoder(Type, Func<Exception,String>) Method

Definition

Configures the exception decoder for the specified exception type.

public static void SetExceptionDecoder (Type exceptionType, Func<Exception,string> decoder);
static member SetExceptionDecoder : Type * Func<Exception, string> -> unit
Public Shared Sub SetExceptionDecoder (exceptionType As Type, decoder As Func(Of Exception, String))

Parameters

exceptionType
Type

The exception type to configure a decoder for.

decoder
Func<Exception,String>

The decoder.

Applies to