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

定义

为指定的异常类型配置异常解码器。

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))

参数

exceptionType
Type

要为其配置解码器的异常类型。

decoder
Func<Exception,String>

解码器。

适用于