Click or drag to resize
CsvLayout Class
A specialized layout that renders CSV-formatted events.
Inheritance Hierarchy

Namespace: NLog.Layouts
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
public class CsvLayout : LayoutWithHeaderAndFooter

The CsvLayout type exposes the following members.

Constructors
  NameDescription
Public methodCsvLayout
Initializes a new instance of the CsvLayout class.
Top
Properties
  NameDescription
Public propertyColumns
Gets the array of parameters to be passed.
Public propertyCustomColumnDelimiter
Gets or sets the custom column delimiter value (valid when ColumnDelimiter is set to 'Custom').
Public propertyDelimiter
Gets or sets the column delimiter.
Public propertyFooter
Gets or sets the footer layout.
(Inherited from LayoutWithHeaderAndFooter.)
Public propertyHeader
Gets or sets the header layout.
(Inherited from LayoutWithHeaderAndFooter.)
Public propertyLayout
Gets or sets the body layout (can be repeated multiple times).
(Inherited from LayoutWithHeaderAndFooter.)
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from Layout.)
Public propertyQuoteChar
Gets or sets the quote Character.
Public propertyQuoting
Gets or sets the quoting mode.
Public propertyWithHeader
Gets or sets a value indicating whether CVS should include header.
Top
Methods
  NameDescription
Protected methodCloseLayout
Closes the layout.
(Inherited from Layout.)
Protected methodGetFormattedMessage
Formats the log event for write.
(Overrides LayoutWithHeaderAndFooterGetFormattedMessage(LogEventInfo).)
Protected methodInitializeLayout
Initializes the layout.
(Overrides LayoutInitializeLayout.)
Public methodPrecalculate
Precalculates the layout for the specified log event and stores the result in per-log event cache. Only if the layout doesn't have [ThreadAgnostic] and doens't contain layouts with [ThreadAgnostic].
(Inherited from Layout.)
Public methodRender
Renders the event info in layout.
(Inherited from Layout.)
Top
See Also