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

Logger.Write<T1> Method (LogLevel, String, T1)

Writes a custom log record with 1 parameter.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.1.5.0 (6.1.5.0)
Syntax
C#
public void Write<T1>(
	LogLevel level,
	string text,
	T1 arg1
)

Parameters

level
Type: PostSharp.Patterns.Diagnostics.LogLevel
The severity of the record (e.g. Info or Warning).
text
Type: System.String
The text of the log record, including parameters (e.g. Opening {Path} file {ShareMode} sharing mode).
arg1
Type: T1
Value of the first parameter.

Type Parameters

T1
Type of the first parameter.
See Also