NetCoreWebDriverFactory
3.0.0
Easy WebDriver generation for .NET Core
|
Base class for specific log providers. More...
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... | |
Base class for specific log providers.
|
protected |
Initialize an instance of the LogProviderBase class by initializing the references to the nested and mapped diagnostics context-obtaining functions.
|
pure virtual |
Gets the specified named logger.
name | Name of the logger. |
Implements AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.ILogProvider.
Implemented in AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LoupeLogProvider, AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.NLogLogProvider, AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.Log4NetLogProvider, and AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.SerilogLogProvider.
|
protectedvirtual |
Returns the 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.
|
protectedvirtual |
Returns the 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.
IDisposable AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LogProviderBase.OpenMappedContext | ( | string | key, |
object | value, | ||
bool | destructure = false |
||
) |
Opens a mapped diagnostics context. Not supported in EntLib logging.
key | A key. |
value | A value. |
destructure | Determines whether to call the destructor or not. |
Implements AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.ILogProvider.
|
protected |
Delegate defining the signature of the method opening a mapped diagnostics context.
key | A key. |
value | A value. |
destructure | Determines whether to call the destructor or not. |
|
protected |
Delegate defining the signature of the method opening a nested diagnostics context.
message | The message to add to the diagnostics context. |
IDisposable AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LogProviders.LogProviderBase.OpenNestedContext | ( | string | message | ) |
Opens a nested diagnostics context. Not supported in EntLib logging.
message | The message to add to the diagnostics context. |
Implements AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.ILogProvider.
|
protected |
Error message should initializing the log provider fail.