Volume Control
Application-specific hotkeys for Windows
VolumeControl.Log.Endpoints.ConsoleEndpoint Class Reference

Allows using the Console as a logging endpoint. More...

Inheritance diagram for VolumeControl.Log.Endpoints.ConsoleEndpoint:
Collaboration diagram for VolumeControl.Log.Endpoints.ConsoleEndpoint:

Public Member Functions

 ConsoleEndpoint ()
 Creates a new ConsoleEndpoint instance. More...
 
override TextWriter GetTextWriter ()
 Gets a TextWriter object for writing to this endpoint.
 
override void Reset ()
 Clears the console. More...
 
- Public Member Functions inherited from VolumeControl.Log.Endpoints.BaseEndpointWriter
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...
 

Static Public Member Functions

static TextWriter GetSTDOUT ()
 Gets the TextWriter instance for the standard output console stream. More...
 
static TextWriter GetSTDERR ()
 Gets the TextWriter instance for the standard error console stream. More...
 

Additional Inherited Members

- Protected Member Functions inherited from VolumeControl.Log.Endpoints.BaseEndpointWriter
 BaseEndpointWriter (bool isWritingEnabled=true)
 Creates a new BaseEndpointWriter instance. More...
 
void NotifyPropertyChanged ([CallerMemberName] string propertyName="")
 Triggers the PropertyChanged event for the specified propertyName . More...
 
- Properties inherited from VolumeControl.Log.Endpoints.BaseEndpointWriter
bool IsWritingEnabled [get, set]
 
- Properties inherited from VolumeControl.Log.Interfaces.IEndpointWriter
bool IsWritingEnabled [get, set]
 Gets or sets whether this endpoint can be written to. More...
 
- Events inherited from VolumeControl.Log.Endpoints.BaseEndpointWriter
EventHandler< bool >? EnabledChanging
 
EventHandler< bool >? EnabledChanged
 
PropertyChangedEventHandler? PropertyChanged
 
- Events inherited from VolumeControl.Log.Interfaces.IEndpointWriter
EventHandler< bool >? EnabledChanging
 Occurs when the endpoint is about to be enabled or disabled for any reason. More...
 
EventHandler< bool >? EnabledChanged
 Occurs when the endpoint is enabled or disabled for any reason. More...
 

Detailed Description

Allows using the Console as a logging endpoint.

Constructor & Destructor Documentation

◆ ConsoleEndpoint()

VolumeControl.Log.Endpoints.ConsoleEndpoint.ConsoleEndpoint ( )

Creates a new ConsoleEndpoint instance.

Member Function Documentation

◆ GetSTDERR()

static TextWriter VolumeControl.Log.Endpoints.ConsoleEndpoint.GetSTDERR ( )
static

Gets the TextWriter instance for the standard error console stream.

The caller should not dispose of the returned writer object.

Returns
TextWriter instance.

◆ GetSTDOUT()

static TextWriter VolumeControl.Log.Endpoints.ConsoleEndpoint.GetSTDOUT ( )
static

Gets the TextWriter instance for the standard output console stream.

The caller should not dispose of the returned writer object.

Returns
TextWriter instance.

◆ Reset()

override void VolumeControl.Log.Endpoints.ConsoleEndpoint.Reset ( )
virtual

Clears the console.

Implements VolumeControl.Log.Endpoints.BaseEndpointWriter.


The documentation for this class was generated from the following file: