SetupBuilderExtensions Class |
Namespace: NLog
The SetupBuilderExtensions type exposes the following members.
| Name | Description | |
|---|---|---|
| GetCurrentClassLogger |
Gets the logger with the full name of the current class, so namespace and class name.
| |
| GetLogger |
Gets the specified named logger.
| |
| LoadConfiguration(ISetupBuilder, LoggingConfiguration) |
Loads NLog config provided in loggingConfiguration | |
| LoadConfiguration(ISetupBuilder, ActionISetupLoadConfigurationBuilder) |
Loads NLog config created by the method configBuilder | |
| LoadConfigurationFromAssemblyResource |
Loads NLog config located in embedded resource from main application assembly.
| |
| LoadConfigurationFromFile(ISetupBuilder, IEnumerableString, Boolean) |
Loads NLog config from file-paths candidateFilePaths if provided, else fallback to scanning for NLog.config
| |
| LoadConfigurationFromFile(ISetupBuilder, String, Boolean) |
Loads NLog config from filename configFile if provided, else fallback to scanning for NLog.config
| |
| LoadConfigurationFromXml |
Loads NLog config from XML in configXml | |
| RegisterWindowsForms |
Register the NLog.Windows.Forms extensions before loading NLog config
| |
| ReloadConfiguration |
Reloads the current logging configuration and activates it
| |
| SetupExtensions |
Configures loading of NLog extensions for Targets and LayoutRenderers
| |
| SetupInternalLogger |
Configures the output of NLog InternalLogger for diagnostics / troubleshooting
| |
| SetupLogFactory |
Configures general options for NLog LogFactory before loading NLog config
| |
| SetupSerialization |
Configures serialization and transformation of LogEvents
|