LogLevelSource.Write<T> Method (T, Exception, WriteMessageOptions) |
Writes a message and specifies an Exception.
Namespace: PostSharp.Patterns.Diagnostics.Custom
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.10.10.0 (6.10.10.0)
C#
public void Write<T>( in T message, Exception exception, in WriteMessageOptions options = null ) where T : IMessage
Parameters
- message
- Type: T
The message, typically created using the SemanticMessageBuilder or FormattedMessageBuilder class. - exception
- Type: System.Exception
An optional Exception. - options (Optional)
- Type: PostSharp.Patterns.Diagnostics.WriteMessageOptions
Options.
Type Parameters
- T
- Type of the message.