Last updated: 2006-09-18

This website is based on NLog v1.0. Click here to view the documentation for other versions.

${CSVLayout} Layout Renderer


A specialized layout that renders CSV-formatted events.

AssemblyClass.NET Framework.NET CFMono on WindowsMono on Unix
1.01.12.01.02.01.02.01.02.0
NLog.dllNLog.Layouts.CsvLayout

Parameters:

NameTypeDescription
customColumnDelimiterstring
Custom column delimiter value (valid when ColumnDelimiter is set to 'Custom')
delimiterColumnDelimiterMode
Column delimiter.

Default value is: Auto.

Possible values are:

  • Auto - Automatically detect from regional settings.
  • Comma - Comma (ASCII 44)
  • Semicolon - Semicolon (ASCII 59)
  • Tab - Tab character (ASCII 9)
  • Pipe - Pipe character (ASCII 124)
  • Space - Space character (ASCII 32)
  • Custom - Custom string, specified by the CustomDelimiter

quoteCharstring
Quote Character

Default value is: ".

quotingCsvQuotingMode
Quoting mode.

Possible values are:

  • All - Quote all column.
  • Nothing - Quote nothing.
  • Auto - Quote only whose values contain the quote symbol or the separator.

withHeaderboolean
Whether CVS should include header.

Back to the layout list.
Webwww.nlog-project.org