<PackageReference Include="NLog" Version="6.1.4" />

NLog.Layouts.SimpleLayout

Represents a string with embedded placeholders that can render contextual information.
public string FixedText { get; }

Get the fixed text. Only set when IsFixedText is true

public bool IsFixedText { get; }

Is the message fixed? (no Layout renderers used)

Gets a collection of LayoutRenderer objects that make up this layout.

public string OriginalText { get; }

Original text before parsing as Layout renderes.

Gets a collection of LayoutRenderer objects that make up this layout.

Gets the level of stack trace information required for rendering.

public string Text { get; }

Gets or sets the layout text that could be parsed.

public SimpleLayout()

Initializes a new instance of the SimpleLayout class.

public SimpleLayout(string txt)

Initializes a new instance of the SimpleLayout class.

public SimpleLayout(string txt, ConfigurationItemFactory configurationItemFactory)

Initializes a new instance of the SimpleLayout class.

public static string Escape(string text)

Escapes the passed text so that it can be used literally in all places where layout is normally expected without being treated as layout.

public static string Evaluate(string text, LogEventInfo logEvent)

Evaluates the specified text by expanding all layout renderers.

public static string Evaluate(string text)

Evaluates the specified text by expanding all layout renderers in new LogEventInfo context.

public static SimpleLayout op_Implicit(string text)

Implicitly converts the specified string as LayoutRenderer-expression into a SimpleLayout.