Click or drag to resize

SetupBuilderExtensions Class

Extension methods to setup LogFactory options
Inheritance Hierarchy
SystemObject
  NLogSetupBuilderExtensions

Namespace:  NLog
Assemblies:   NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
  NLog.Windows.Forms (in NLog.Windows.Forms.dll) Version: 5.2.3+a6f5d4397ec11371a92ffd5b29f2da9844f01c95
Syntax
public static class SetupBuilderExtensions

The SetupBuilderExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetCurrentClassLogger
Gets the logger with the full name of the current class, so namespace and class name.
Public methodStatic memberGetLogger
Gets the specified named logger.
Public methodStatic memberLoadConfiguration(ISetupBuilder, LoggingConfiguration)
Loads NLog config provided in loggingConfiguration
Public methodStatic memberLoadConfiguration(ISetupBuilder, ActionISetupLoadConfigurationBuilder)
Loads NLog config created by the method configBuilder
Public methodStatic memberLoadConfigurationFromAssemblyResource
Loads NLog config located in embedded resource from main application assembly.
Public methodStatic memberLoadConfigurationFromFile(ISetupBuilder, IEnumerableString, Boolean)
Loads NLog config from file-paths candidateFilePaths if provided, else fallback to scanning for NLog.config
Public methodStatic memberLoadConfigurationFromFile(ISetupBuilder, String, Boolean)
Loads NLog config from filename configFile if provided, else fallback to scanning for NLog.config
Public methodStatic memberLoadConfigurationFromXml
Loads NLog config from XML in configXml
Public methodStatic memberRegisterWindowsForms
Register the NLog.Windows.Forms extensions before loading NLog config
Public methodStatic memberReloadConfiguration
Reloads the current logging configuration and activates it
Public methodStatic memberSetupExtensions
Configures loading of NLog extensions for Targets and LayoutRenderers
Public methodStatic memberSetupInternalLogger
Configures the output of NLog InternalLogger for diagnostics / troubleshooting
Public methodStatic memberSetupLogFactory
Configures general options for NLog LogFactory before loading NLog config
Public methodStatic memberSetupSerialization
Configures serialization and transformation of LogEvents
Top
See Also