Click or drag to resize

ISetupBuilder Interface

Interface for fluent setup of LogFactory options

Namespace:  NLog.Config
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public interface ISetupBuilder

The ISetupBuilder type exposes the following members.

Properties
  NameDescription
Public propertyLogFactory
LogFactory under configuration
Top
Extension Methods
  NameDescription
Public Extension MethodGetCurrentClassLogger
Gets the logger with the full name of the current class, so namespace and class name.
(Defined by SetupBuilderExtensions.)
Public Extension MethodGetLogger
Gets the specified named logger.
(Defined by SetupBuilderExtensions.)
Public Extension MethodLoadConfiguration(ActionISetupLoadConfigurationBuilder)Overloaded.
Loads NLog config created by the method configBuilder
(Defined by SetupBuilderExtensions.)
Public Extension MethodLoadConfiguration(LoggingConfiguration)Overloaded.
Loads NLog config provided in loggingConfiguration
(Defined by SetupBuilderExtensions.)
Public Extension MethodLoadConfigurationFromAssemblyResource
Loads NLog config located in embedded resource from main application assembly.
(Defined by SetupBuilderExtensions.)
Public Extension MethodLoadConfigurationFromFile(IEnumerableString, Boolean)Overloaded.
Loads NLog config from file-paths candidateFilePaths if provided, else fallback to scanning for NLog.config
(Defined by SetupBuilderExtensions.)
Public Extension MethodLoadConfigurationFromFile(String, Boolean)Overloaded.
Loads NLog config from filename configFile if provided, else fallback to scanning for NLog.config
(Defined by SetupBuilderExtensions.)
Public Extension MethodLoadConfigurationFromXml
Loads NLog config from XML in configXml
(Defined by SetupBuilderExtensions.)
Public Extension MethodRegisterNLogWebOverloaded.
Register the NLog.Web LayoutRenderers before loading NLog config
(Defined by SetupBuilderExtensions.)
Public Extension MethodRegisterNLogWeb(IConfiguration, IServiceProvider)Overloaded.
Convience method to register aspnet-layoutrenders in NLog.Web as one-liner before loading NLog.config
(Defined by SetupBuilderExtensions.)
Public Extension MethodRegisterWindowsForms
Register the NLog.Windows.Forms extensions before loading NLog config
(Defined by SetupBuilderExtensions.)
Public Extension MethodReloadConfiguration
Reloads the current logging configuration and activates it
(Defined by SetupBuilderExtensions.)
Public Extension MethodSetupExtensions
Configures loading of NLog extensions for Targets and LayoutRenderers
(Defined by SetupBuilderExtensions.)
Public Extension MethodSetupInternalLogger
Configures the output of NLog InternalLogger for diagnostics / troubleshooting
(Defined by SetupBuilderExtensions.)
Public Extension MethodSetupLogFactory
Configures general options for NLog LogFactory before loading NLog config
(Defined by SetupBuilderExtensions.)
Public Extension MethodSetupSerialization
Configures serialization and transformation of LogEvents
(Defined by SetupBuilderExtensions.)
Top
See Also