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) Method (Log­Level, Exception, String, T1, Caller­Info)

Logger.WriteException<T1> Method (LogLevel, Exception, String, T1, 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>(
	LogLevel level,
	Exception exception,
	string text,
	T1 arg1,
	ref CallerInfo callerInfo
)

Parameters

level
Type: PostSharp.Patterns.Diagnostics.LogLevel
exception
Type: System.Exception
text
Type: System.String
arg1
Type: T1
callerInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.CallerInfo

Type Parameters

T1
See Also