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

Writes log messages to one or more files.

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 2.0.1.0

Syntax

C#
public class FileTarget : TargetWithLayoutHeaderAndFooter
Visual Basic (Declaration)
Public Class FileTarget _
	Inherits TargetWithLayoutHeaderAndFooter
Visual Basic (Usage)
Dim instance As FileTarget

Inheritance Hierarchy

Object
  NLog.Targets..::.Target
    NLog.Targets..::.TargetWithLayout
      NLog.Targets..::.TargetWithLayoutHeaderAndFooter
        NLog.Targets..::.FileTarget

See Also