Ads by Lake Quincy Media

Wiki Navigation

 
Gibraltar - Learn about the best analysis tool for NLog

SimpleLayout

NLog documentation is a Wiki, which allows registered users to edit its content.
If you want to contribute, please create a user account and contact Jarek to get edit access.

Represents a string with embedded placeholders that can render contextual information. 

Supported in

Configuration Syntax

<targets>
  <target>
    <layout xsi:type="SimpleLayout">
      <!-- Layout Options -->
      <text>String</text>

    </layout>
  </target>
</targets>
Read more about using the Configuration File.

Parameters

  • Layout Options
  • text - Layout text.

Remarks

This layout is not meant to be used explicitly. Instead you can just use a string containing layout renderers everywhere the layout is required.