The FileLogWriter type exposes the following 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.
|
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.
(Overrides LogWriterBase..::..Dispose(Boolean).) | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize |
Finalizer. Called by garbage collector during object destruction.
(Overrides Object..::..Finalize()()()().) | |
GetHashCode | Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a String that represents the current Object. (Inherited from Object.) | |
Write(LogLevel, Type, Int32, String, String) |
Writes a message into the log.
(Inherited from LogWriterBase.) | |
Write(LogLevel, Type, Int32, String, String, array<Byte>[]()[][], Int32, Int32) |
Writes a message and data block into the log.
(Inherited from LogWriterBase.) | |
WriteMessage |
Appends the specified message text into a text-based log.
(Overrides LogWriterBase..::..WriteMessage(String).) |
Properties
Name | Description | |
---|---|---|
Filename | Obsolete. | |
IsClosed |
Get a value indicating whether the log writer is closed.
(Overrides LogWriterBase..::..IsClosed.) | |
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.
|