NLog.Config.LoggingConfiguration
Keeps logging configuration and provides simple API to modify it.
Gets all targets.
Gets a collection of named targets specified in the configuration.
Gets or sets the default culture info to use as FormatProvider.
Gets the collection of file names which should be watched for changes by NLog.
Gets the factory that will be configured
Gets the collection of logging rules.
Gets the variables defined in the configuration or assigned from API
public LoggingConfiguration()
Initializes a new instance of the LoggingConfiguration class.
Initializes a new instance of the LoggingConfiguration class.
public void AddRule(LogLevel minLevel, LogLevel maxLevel, string targetName, string loggerNamePattern = "*")
Add a rule with min- and maxLevel.
public void AddRule(LogLevel minLevel, LogLevel maxLevel, Target target, string loggerNamePattern = "*")
Add a rule with min- and maxLevel.
public void AddRule(LogLevel minLevel, LogLevel maxLevel, Target target, string loggerNamePattern, bool final)
Add a rule with min- and maxLevel.
Add a rule object.
Add a rule for all loglevels.
Add a rule for all loglevels.
Add a rule for all loglevels.
Add a rule for one loglevel.
Add a rule for one loglevel.
Add a rule for one loglevel.
Registers the specified target object. The name of the target is read from Name.
Registers the specified target object under a given name.
Lookup the logging rule with matching RuleName
Finds the target with the specified name.
Finds the target with the specified name and specified type.
Installs target-specific objects on current system.
Allow this new configuration to capture state from the old configuration
Loads the NLog LoggingConfiguration from its original source (Ex. read from original config-file after it was updated)
Removes the specified named logging rule with matching RuleName
Removes the specified named target.
Uninstalls target-specific objects from current system.