Class FileAppender
FileAppender class
Reprensents a file appender.
public sealed class FileAppender : Appender
Constructors
Name | Description |
---|
FileAppender() | Initializes a new instance of the FileAppender class. |
FileAppender(string) | Initializes a new instance of the FileAppender class. |
FileAppender(string, bool) | Initializes a new instance of the FileAppender class. |
FileAppender(string, IFormatter) | Initializes a new instance of the FileAppender class. |
FileAppender(string, bool, IFormatter) | Initializes a new instance of the FileAppender class. |
Properties
Name | Description |
---|
Encoding { get; set; } | Gets or sets the encoding. |
FileName { get; set; } | Gets or sets file name. |
Formatter { get; set; } | Gets or sets the formatter. |
UseDate { get; set; } | Gets or sets value which indicates whether date is used for logging. |
Methods
Name | Description |
---|
override Append(LogEntry) | Appends the log entry information to the appender. |
Append(LogEntry[]) | Appends a set of log entries to the appender. |
override AppendHeader() | Starts log file with specific header. |
override Close() | Closes the appender. |
Dispose() | Releases the unmanaged resources used by the Appender. |
virtual Initialize() | Initializes the appender instance. |
See Also