Log endpoint that allows writing logs directly to a file on disk.
More...
|
| FileEndpoint (string path, bool enabled) |
|
virtual StreamWriter | GetStreamWriter () |
| Gets a new StreamWriter instance for the file. The caller is responsible for disposing of it. More...
|
|
override TextWriter | GetTextWriter () |
| Gets a TextWriter object for writing to this endpoint.
|
|
override void | Reset () |
| Clears the endpoint's contents, leaving it blank.
|
|
virtual void | Write (string @string) |
| Writes the specified string to the endpoint.
|
|
virtual void | WriteLine (string @string) |
| Writes the specified string to the endpoint, followed by a line break.
|
|
virtual void | WriteLine () |
| Writes a line break to the endpoint. More...
|
|
Log endpoint that allows writing logs directly to a file on disk.
◆ FileEndpoint()
VolumeControl.Log.Endpoints.FileEndpoint.FileEndpoint |
( |
string |
path, |
|
|
bool |
enabled |
|
) |
| |
- Parameters
-
path | The location of the log file. |
enabled | Whether the endpoint is already enabled when constructed or not. |
◆ GetStreamWriter()
virtual StreamWriter VolumeControl.Log.Endpoints.FileEndpoint.GetStreamWriter |
( |
| ) |
|
|
virtual |
◆ FileInfo
FileInfo VolumeControl.Log.Endpoints.FileEndpoint.FileInfo |
|
getset |
Gets or sets the file info object for the log file.
◆ Path
string VolumeControl.Log.Endpoints.FileEndpoint.Path |
|
getset |
◆ PathIsEmpty
bool VolumeControl.Log.Endpoints.FileEndpoint.PathIsEmpty |
|
get |
Gets whether the Path is a blank string or not.
- Returns
true
when the Path is a blank string; otherwise false
.
The documentation for this class was generated from the following file:
- /home/runner/work/volume-control/volume-control/VolumeControl.Log/Endpoints/FileEndpoint.cs