[This is preliminary documentation and is subject to change.]

The FileContentsLayoutRenderer type exposes the following members.

Constructors

  NameDescription
FileContentsLayoutRenderer
Initializes a new instance of the FileContentsLayoutRenderer class.

Methods

  NameDescription
Append
Renders the contents of the specified file and appends it to the specified StringBuilder.
(Overrides LayoutRenderer..::.Append(StringBuilder, LogEventInfo).)
Close
Closes the layout renderer.
(Inherited from LayoutRenderer.)
Initialize
Initializes the layout renderer.
(Inherited from LayoutRenderer.)
Render
Renders the the value of layout renderer in the context of the specified log event.
(Inherited from LayoutRenderer.)
ToString
Returns a String that represents this instance.
(Inherited from LayoutRenderer.)

Properties

  NameDescription
Encoding
Gets or sets the encoding used in the file.
FileName
Gets or sets the name of the file.

See Also