PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logger Class/Logger Methods/Logger.​Write Method/Logger.​Write Method (Log­Level, String, Object[])

Logger.Write Method (LogLevel, String, Object[])

Writes a custom log record with an array of parameters.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.4.0 (6.5.4.0)
Syntax
C#
public void Write(
	LogLevel level,
	string text,
	params Object[] args
)

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.)
args
Type: System.Object[]
An array of parameters.
See Also