FileLogWriter Class
Namespace: Rebex
Assembly: Rebex.Common.dll (version 7.0.9119)
File-based log writer that saves log messages into a text file.
Syntax
public class FileLogWriter : LogWriterBase, ILogWriter, IDisposable
Inherited Members
Constructors
Name | Description |
---|---|
FileLogWriter(String) | Creates a new instance of file log writer based on the specified file and the default "Info" log level. |
FileLogWriter(String, LogLevel) | Creates a new instance of file log writer based on the specified file and log level. |
Properties
Name | Description |
---|---|
IsClosed | Get a value indicating whether the log writer is closed. |
Level | Gets or sets the log level - only log messages with log level equal to or greater than the specified one. Inherited from LogWriterBase. |
Path | Path to the log file. |
Methods
Name | Description |
---|---|
Close() | Closes the log writer. Inherited from LogWriterBase. |
Dispose() | Disposes the object. Inherited from LogWriterBase. |
Dispose(Boolean) | Dispose(bool disposing) executes in two distinct scenarios. If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. If disposing equals false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. |
Finalize() | Finalizer. Called by garbage collector during object destruction. |
Write(LogLevel, Type, Int32, String, String) | Writes a message into the log. Inherited from LogWriterBase. |
Write(LogLevel, Type, Int32, String, String, Byte[], Int32, Int32) | Writes a message and data block into the log. Inherited from LogWriterBase. |
WriteMessage(String) | Appends the specified message text into a text-based log. |