LoggingConfigurationParser Class |
Namespace: NLog.Config
The LoggingConfigurationParser type exposes the following members.
Name | Description | |
---|---|---|
LoggingConfigurationParser |
Constructor
|
Name | Description | |
---|---|---|
AllTargets |
Gets all targets.
(Inherited from LoggingConfiguration.) | |
ConfiguredNamedTargets |
Gets a collection of named targets specified in the configuration.
(Inherited from LoggingConfiguration.) | |
DefaultCultureInfo |
Gets or sets the default culture info to use as FormatProvider.
(Inherited from LoggingConfiguration.) | |
FileNamesToWatch |
Gets the collection of file names which should be watched for changes by NLog.
(Inherited from LoggingConfiguration.) | |
LogFactory |
Gets the factory that will be configured
(Inherited from LoggingConfiguration.) | |
LoggingRules |
Gets the collection of logging rules.
(Inherited from LoggingConfiguration.) | |
Variables |
Gets the variables defined in the configuration or assigned from API
(Inherited from LoggingConfiguration.) |
Name | Description | |
---|---|---|
AddRule(LoggingRule) |
Add a rule object.
(Inherited from LoggingConfiguration.) | |
AddRule(LogLevel, LogLevel, Target, String) |
Add a rule with min- and maxLevel.
(Inherited from LoggingConfiguration.) | |
AddRule(LogLevel, LogLevel, String, String) |
Add a rule with min- and maxLevel.
(Inherited from LoggingConfiguration.) | |
AddRule(LogLevel, LogLevel, Target, String, Boolean) |
Add a rule with min- and maxLevel.
(Inherited from LoggingConfiguration.) | |
AddRuleForAllLevels(String, String) |
Add a rule for all loglevels.
(Inherited from LoggingConfiguration.) | |
AddRuleForAllLevels(Target, String) |
Add a rule for all loglevels.
(Inherited from LoggingConfiguration.) | |
AddRuleForAllLevels(Target, String, Boolean) |
Add a rule for all loglevels.
(Inherited from LoggingConfiguration.) | |
AddRuleForOneLevel(LogLevel, Target, String) |
Add a rule for one loglevel.
(Inherited from LoggingConfiguration.) | |
AddRuleForOneLevel(LogLevel, String, String) |
Add a rule for one loglevel.
(Inherited from LoggingConfiguration.) | |
AddRuleForOneLevel(LogLevel, Target, String, Boolean) |
Add a rule for one loglevel.
(Inherited from LoggingConfiguration.) | |
AddTarget(Target) |
Registers the specified target object. The name of the target is read from Name.
(Inherited from LoggingConfiguration.) | |
AddTarget(String, Target) |
Registers the specified target object under a given name.
(Inherited from LoggingConfiguration.) | |
FindRuleByName |
Lookup the logging rule with matching RuleName (Inherited from LoggingConfiguration.) | |
FindTargetByName(String) |
Finds the target with the specified name.
(Inherited from LoggingConfiguration.) | |
Install |
Installs target-specific objects on current system.
(Inherited from LoggingConfiguration.) | |
LoadConfig |
Loads NLog configuration from provided config section
| |
OnConfigurationAssigned |
Notify the configuration when Configuration has been assigned / unassigned.
(Inherited from LoggingConfiguration.) | |
ParseNLogSection |
Parses a single config section within the NLog-config
| |
PrepareForReload |
Allow this new configuration to capture state from the old configuration
(Inherited from LoggingConfiguration.) | |
Reload |
Called by LogManager when one of the log configuration files changes.
(Inherited from LoggingConfiguration.) | |
RemoveRuleByName |
Removes the specified named logging rule with matching RuleName (Inherited from LoggingConfiguration.) | |
RemoveTarget |
Removes the specified named target.
(Inherited from LoggingConfiguration.) | |
ToString | Returns a string that represents the current object. (Inherited from LoggingConfiguration.) | |
Uninstall |
Uninstalls target-specific objects from current system.
(Inherited from LoggingConfiguration.) |