Skip to content

3136c3cd 8f67 5ff6 3400 160bcf99a3dd

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

LoggerBase(TSettings) Class

The abstract base class of all logger classes.

Inheritance Hierarchy

System.Object
  Plexdata.LogWriter.Logging.LoggerBase(TSettings)
    More... Namespace: Plexdata.LogWriter.Logging
Assembly: Plexdata.LogWriter.Abstraction (in Plexdata.LogWriter.Abstraction.dll) Version: 1.0.7.1

Syntax

C#

public abstract class LoggerBase<TSettings>
where TSettings : ILoggerSettings

Type Parameters

 

TSettings
The type of TSettings must be of type ILoggerSettings.
  The LoggerBase(TSettings) type exposes the following members.

Constructors

 

Name Description
Protected method LoggerBase(TSettings)(TSettings) The default constructor.
Protected method LoggerBase(TSettings)(TSettings, ILoggerFactory) The parameterized constructor.
  Back to Top

Properties

 

Name Description
Protected property Factory Gets the assigned logging factory.
Public property IsDisabled Determines if logging is disabled or not.
Protected property Settings The instance of applied logger settings.
  Back to Top

Methods

 

Name Description
Protected method CreateOutput(LogLevel, String, String, String, Exception, ValueTuple(String, Object)[]) This method creates to message text to be written.
Protected method CreateOutput(TSettings, LogLevel, String, String, String, Exception, ValueTuple(String, Object)[]) This method creates to message text to be written.
Protected method CreateScope(TScope) Creates an instance of an IDisposable.
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.
Protected method Finalize The class destructor. (Overrides Object.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.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Private method OnLoggingScopeDisposing Handles all incoming Disposing events.
Private method RemoveScope Removes an assigned instance of class LoggingScope.
Protected method ResolveContext(TContext)() This method resolves the logging context.
Protected method ResolveContext(TContext)(TSettings) This method resolves the logging context.
Protected method ResolveScope(TScope)(TScope) This method resolves the logging scope.
Protected method ResolveScope(TScope)(TScope, TSettings) This method resolves the logging scope.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method Write This method writes a logging message.
  Back to Top

Fields

 

Name Description
Private field scopes The list of assigned logging scopes.
  Back to Top

Remarks

This abstract base class provides all functionalities to be shared with all other logger classes.

See Also

Reference

Plexdata.LogWriter.Logging Namespace

Clone this wiki locally