NetCoreWebDriverFactory  3.0.0
Easy WebDriver generation for .NET Core
AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LogProviderBase Class Referenceabstract

Base class for specific log providers. More...

Inheritance diagram for AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LogProviderBase:
AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.ILogProvider AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.Log4NetLogProvider AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LoupeLogProvider AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.NLogLogProvider AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.SerilogLogProvider

Public Member Functions

abstract Logger GetLogger (string name)
 Gets the specified named logger. More...
 
IDisposable OpenNestedContext (string message)
 Opens a nested diagnostics context. Not supported in EntLib logging. More...
 
IDisposable OpenMappedContext (string key, object value, bool destructure=false)
 Opens a mapped diagnostics context. Not supported in EntLib logging. More...
 

Protected Member Functions

 LogProviderBase ()
 Initialize an instance of the LogProviderBase class by initializing the references to the nested and mapped diagnostics context-obtaining functions. More...
 
virtual OpenNdc GetOpenNdcMethod ()
 Returns the provider-specific method to open a nested diagnostics context. More...
 
virtual OpenMdc GetOpenMdcMethod ()
 Returns the provider-specific method to open a mapped diagnostics context. More...
 
delegate IDisposable OpenNdc (string message)
 Delegate defining the signature of the method opening a nested diagnostics context. More...
 
delegate IDisposable OpenMdc (string key, object value, bool destructure)
 Delegate defining the signature of the method opening a mapped diagnostics context. More...
 

Protected Attributes

const string ErrorInitializingProvider = "Unable to log due to problem initializing the log provider. See inner exception for details."
 Error message should initializing the log provider fail. More...
 

Detailed Description

Base class for specific log providers.

Constructor & Destructor Documentation

◆ LogProviderBase()

AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LogProviderBase.LogProviderBase ( )
protected

Initialize an instance of the LogProviderBase class by initializing the references to the nested and mapped diagnostics context-obtaining functions.

Member Function Documentation

◆ GetLogger()

abstract Logger AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LogProviderBase.GetLogger ( string  name)
pure virtual

◆ GetOpenMdcMethod()

virtual OpenMdc AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LogProviderBase.GetOpenMdcMethod ( )
protectedvirtual

Returns the provider-specific method to open a mapped diagnostics context.

Returns
A provider-specific method to open a mapped diagnostics context.

Reimplemented in AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.Log4NetLogProvider, AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.NLogLogProvider, and AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.SerilogLogProvider.

◆ GetOpenNdcMethod()

virtual OpenNdc AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LogProviderBase.GetOpenNdcMethod ( )
protectedvirtual

Returns the provider-specific method to open a nested diagnostics context.

Returns
A provider-specific method to open a nested diagnostics context.

Reimplemented in AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.NLogLogProvider, AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.Log4NetLogProvider, and AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.SerilogLogProvider.

◆ OpenMappedContext()

IDisposable AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LogProviderBase.OpenMappedContext ( string  key,
object  value,
bool  destructure = false 
)

Opens a mapped diagnostics context. Not supported in EntLib logging.

Parameters
keyA key.
valueA value.
destructureDetermines whether to call the destructor or not.
Returns
A disposable that when disposed removes the map from the context.

Implements AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.ILogProvider.

◆ OpenMdc()

delegate IDisposable AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LogProviderBase.OpenMdc ( string  key,
object  value,
bool  destructure 
)
protected

Delegate defining the signature of the method opening a mapped diagnostics context.

Parameters
keyA key.
valueA value.
destructureDetermines whether to call the destructor or not.
Returns
A disposable that when disposed removes the map from the context.

◆ OpenNdc()

delegate IDisposable AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LogProviderBase.OpenNdc ( string  message)
protected

Delegate defining the signature of the method opening a nested diagnostics context.

Parameters
messageThe message to add to the diagnostics context.
Returns
A disposable that when disposed removes the message from the context.

◆ OpenNestedContext()

IDisposable AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LogProviderBase.OpenNestedContext ( string  message)

Opens a nested diagnostics context. Not supported in EntLib logging.

Parameters
messageThe message to add to the diagnostics context.
Returns
A disposable that when disposed removes the message from the context.

Implements AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.ILogProvider.

Member Data Documentation

◆ ErrorInitializingProvider

const string AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LogProviderBase.ErrorInitializingProvider = "Unable to log due to problem initializing the log provider. See inner exception for details."
protected

Error message should initializing the log provider fail.


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