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

Logger.Write Method (LogLevel, String)

Writes a custom log record without 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
)

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.
See Also