Writes formatted log messages to a file with optional rolling and retention policies.
public class FileLogWriter : LogWriter, IDisposable
Concurrent writes are synchronized by this writer. Configure options up front and avoid mutating writer state while logging is active.
kind:method, kind:property, kind:ctor. Press Esc to clear.FileLogWriter(String)Initializes a new instance of FileLogWriter with default file options.FileLogWriter(FileLogWriterOptions)Initializes a new instance of FileLogWriter.ArchiveTimestampModeGets the clock mode used to generate archive file timestamps.EncodingGets the encoding used to persist log text.FailureModeGets the configured failure mode used for write/roll I/O errors.FilePathGets the destination file path.FileSizeLimitBytesGets the configured file size limit in bytes.FlushToDiskGets a value indicating whether flush operations force writes to durable storage.FormatterGets the formatter used to render a log message before writing.NewLineGets the newline appended after each entry.RetainedFileCountLimitGets the configured archive retention limit.RollingIntervalGets the configured rolling interval.Dispose()Disposes this writer and closes the underlying file stream.Flush()Flushes the underlying stream.FlushStream(FileStream, Boolean)Flushes a stream, optionally forcing writes to durable storage.Log(LogMessage)Logs a message to this writer.