PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logger Class/Logger Methods/Logger.​Write­Exception Method/Logger.​Write­Exception Method (Log­Level, Exception, String)

Logger.WriteException Method (LogLevel, Exception, String)

Writes a custom record without parameters and associates it with an Exception.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
public void WriteException(
	LogLevel level,
	Exception exception,
	string text
)

Parameters

level
Type: PostSharp.Patterns.Diagnostics.LogLevel
The severity of the record (e.g. Warning or Error).
exception
Type: System.Exception
The Exception associated with the record.
text
Type: System.String
The text of the log record.
See Also