Skip to content

de49366c 5b45 d37f fe44 0a82d82fd12c

Axel Kesseler edited this page Mar 1, 2023 · 15 revisions

ConsoleLoggerFacade Class

This class represents the default implementation of interface IConsoleLoggerFacade for all applications that are able to deal with .NET Standard libraries.

Inheritance Hierarchy

System.Object
  Plexdata.LogWriter.Facades.Standard.ConsoleLoggerFacade
Namespace: Plexdata.LogWriter.Facades.Standard
Assembly: Plexdata.LogWriter.Console.Standard (in Plexdata.LogWriter.Console.Standard.dll) Version: 1.0.7.1

Syntax

C#

public class ConsoleLoggerFacade : IConsoleLoggerFacade

The ConsoleLoggerFacade type exposes the following members.

Constructors

 

Name Description
Public method ConsoleLoggerFacade The default constructor initializes all its fields and properties.
  Back to Top

Properties

 

Name Description
Public property Background Gets and sets the background color to be used.
Public property BufferSize Gets and sets the dimension of the console window.
Public property Foreground Gets and sets the foreground color to be used.
Public property IsAttached Determines whether the facade is attached to a console window.
Public property MustDetach Determines whether the facade must detached the console window.
Public property QuickEdit Enables or disables the quick-edit mode of the console window.
Public property References Gets the number of references actually attached to the console facade.
Public property UseColors Gets and sets whether the console facade should use colored messages.
Public property WindowTitle Gets and sets the title text of the console window.
  Back to Top

Methods

 

Name Description
Public method Attach This method safely attaches the console window.
Public method Detach This method safely detaches the console window.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Flush This method flushes the output stream.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Write This method writes provided message out to the console window.
  Back to Top

Fields

 

Name Description
Private field interlock This field holds the instance of the internal synchronization object.
  Back to Top

Remarks

Major task of this class is the abstraction of all writing operations of the console logger of the real writing operation into the console window.

See Also

Reference

Plexdata.LogWriter.Facades.Standard Namespace

Clone this wiki locally