Logger.WriteException Method (LogLevel, Exception, String, Object[]) |
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.15.0 (6.5.15.0)
public void WriteException( LogLevel level, Exception exception, string text, Object[] args )
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, including parameters (e.g. Opening {Path} file {ShareMode} sharing mode.) - args
- Type: System.Object[]
An array of parameters.