Gets the supplied fallback provider that the Logger class will use when logging
failed on this logging provider. When no fallback provider is defined in the configuration file,
null (Nothing in VB) is returned.
Namespace:
CuttingEdge.LoggingAssembly: CuttingEdge.Logging (in CuttingEdge.Logging.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Property FallbackProvider As LoggingProviderBase |
| C# |
|---|
public LoggingProviderBase FallbackProvider { get; internal set; } |
| Visual C++ |
|---|
public: property LoggingProviderBase^ FallbackProvider { LoggingProviderBase^ get (); void set (LoggingProviderBase^ value); } |
| JavaScript |
|---|
function get_fallbackProvider(); function set_fallbackProvider(value); |
Field Value
The fallback provider.
Remarks
When a provider has a fallback provider, it will log an event to that fallback provider when the provider itself fails to log the event. An provider is considered to have failed, when its LogInternal method threw an exception. After the provider forwarded the event to its fallback provider, it will also send the exception thrown from LogInternal to the fallback provider.
Important: When a provider fails while no fallback provider is configured, the thrown exception will simply bubble up the call stack.