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