PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logger Class / Logger Methods / Logger.​Write­Exception Method / Logger.​Write­Exception(T1, T2, T3, T4, T5, T6) Method (Log­Level, Exception, String, T1, T2, T3, T4, T5, T6, Caller­Info)

Logger.WriteException<T1, T2, T3, T4, T5, T6> Method (LogLevel, Exception, String, T1, T2, T3, T4, T5, T6, CallerInfo)

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public void WriteException<T1, T2, T3, T4, T5, T6>(
	LogLevel level,
	Exception exception,
	string text,
	T1 arg1,
	T2 arg2,
	T3 arg3,
	T4 arg4,
	T5 arg5,
	T6 arg6,
	ref CallerInfo callerInfo
)

Parameters

level
Type: PostSharp.Patterns.Diagnostics.LogLevel
exception
Type: System.Exception
text
Type: System.String
arg1
Type: T1
arg2
Type: T2
arg3
Type: T3
arg4
Type: T4
arg5
Type: T5
arg6
Type: T6
callerInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.CallerInfo

Type Parameters

T1
T2
T3
T4
T5
T6
See Also