| SetupBuilderExtensionsReloadConfiguration Method |
Reloads the current logging configuration and activates it
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public static ISetupBuilder ReloadConfiguration(
this ISetupBuilder setupBuilder
)
<ExtensionAttribute>
Public Shared Function ReloadConfiguration (
setupBuilder As ISetupBuilder
) As ISetupBuilder
Dim setupBuilder As ISetupBuilder
Dim returnValue As ISetupBuilder
returnValue = setupBuilder.ReloadConfiguration()
[<ExtensionAttribute>]
static member ReloadConfiguration :
setupBuilder : ISetupBuilder -> ISetupBuilder
Parameters
- setupBuilder
- Type: NLog.ConfigISetupBuilder
Return Value
Type:
ISetupBuilderUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ISetupBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks Logevents produced during the configuration-reload can become lost, as targets are unavailable while closing and initializing.
See Also