Skip to content

1dba97a0 115f ce3a f903 2f76359e5a99

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

ConsoleLoggerBase Class

This abstract class serves as base class of all other console logger classes.

Inheritance Hierarchy

System.Object
  Plexdata.LogWriter.Logging.LoggerBase(IConsoleLoggerSettings)
    Plexdata.LogWriter.Logging.ConsoleLoggerBase
      Plexdata.LogWriter.Logging.Standard.ConsoleLogger
      Plexdata.LogWriter.Logging.Standard.ConsoleLogger(TContext)
      Plexdata.LogWriter.Logging.Windows.ConsoleLogger
      Plexdata.LogWriter.Logging.Windows.ConsoleLogger(TContext)
Namespace: Plexdata.LogWriter.Logging
Assembly: Plexdata.LogWriter.Console (in Plexdata.LogWriter.Console.dll) Version: 1.0.7.1

Syntax

C#

public abstract class ConsoleLoggerBase : LoggerBase<IConsoleLoggerSettings>

The ConsoleLoggerBase type exposes the following members.

Constructors

 

Name Description
Protected method ConsoleLoggerBase The only class constructor.
  Back to Top

Properties

 

Name Description
Protected property Factory Gets the assigned logging factory. (Inherited from LoggerBase(TSettings).)
Public property IsDisabled Determines if logging is disabled or not. (Inherited from LoggerBase(TSettings).)
Public property IsDisposed Determines whether this instance has been disposed.
Protected property Settings The instance of applied logger settings. (Inherited from LoggerBase(TSettings).)
  Back to Top

Methods

 

Name Description
Public method BeginScope(TScope) Begins a logical operation scope.
Protected method CreateOutput(LogLevel, String, String, String, Exception, ValueTuple(String, Object)[]) This method creates to message text to be written. (Inherited from LoggerBase(TSettings).)
Protected method CreateOutput(TSettings, LogLevel, String, String, String, Exception, ValueTuple(String, Object)[]) This method creates to message text to be written. (Inherited from LoggerBase(TSettings).)
Protected method CreateScope(TScope) Creates an instance of an IDisposable. (Inherited from LoggerBase(TSettings).)
Public method Dispose() This method performs the object disposal.
Protected method Dispose(Boolean) This method actually does the object disposal.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Private method FetchScope Fetches the string to be used as scope value. (Inherited from LoggerBase(TSettings).)
Protected method Finalize The class destructor. (Overrides LoggerBase(TSettings).Finalize().)
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.)
Public method IsEnabled Determines if a particular logging level is enabled. (Inherited from LoggerBase(TSettings).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Private method OnLoggingScopeDisposing Handles all incoming Disposing events. (Inherited from LoggerBase(TSettings).)
Private method RemoveScope Removes an assigned instance of class LoggingScope. (Inherited from LoggerBase(TSettings).)
Protected method ResolveContext(TContext)() This method resolves the logging context. (Inherited from LoggerBase(TSettings).)
Protected method ResolveContext(TContext)(TSettings) This method resolves the logging context. (Inherited from LoggerBase(TSettings).)
Protected method ResolveScope(TScope)(TScope) This method resolves the logging scope. (Inherited from LoggerBase(TSettings).)
Protected method ResolveScope(TScope)(TScope, TSettings) This method resolves the logging scope. (Inherited from LoggerBase(TSettings).)
Private method SetupConsoleColors This method changes current message coloring.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method Write This method writes a logging message. (Overrides LoggerBase(TSettings).Write(LogLevel, String, String, String, Exception, ValueTuple(String, Object)[]).)
  Back to Top

Fields

 

Name Description
Private field facade The instance of console logger facade.
Private field scopes The list of assigned logging scopes. (Inherited from LoggerBase(TSettings).)
  Back to Top

Remarks

Task of this base class is to share global functionality between derived classes.

See Also

Reference

Plexdata.LogWriter.Logging Namespace

Clone this wiki locally