Click or drag to resize

LayoutFromString Method (String, Boolean)

Implicitly converts the specified string to a SimpleLayout.

Namespace:  NLog.Layouts
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public static Layout FromString(
	string layoutText,
	bool throwConfigExceptions
)

Parameters

layoutText
Type: SystemString
The layout string.
throwConfigExceptions
Type: SystemBoolean
Whether NLogConfigurationException should be thrown on parse errors (false = replace unrecognized tokens with a space).

Return Value

Type: Layout
Instance of SimpleLayout.
See Also