Logger Additivity Property | Apache log4net™ SDK Documentation

Gets or sets a value indicating if child loggers inherit their parent's appenders.

Namespace: log4net.Repository.Hierarchy
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public virtual bool Additivity { get; set; }

    Public Overridable Property Additivity As Boolean
    	Get
    	Set

    public:
    virtual property bool Additivity {
    	bool get ();
    	void set (bool value);
    }

    abstract Additivity : bool with get, set
    override Additivity : bool with get, set

#### Property Value

Type: Boolean
true if child loggers inherit their parent's appenders.
Remarks

Additivity is set to true by default, that is children inherit the appenders of their ancestors by default. If this variable is set to false then the appenders found in the ancestors of this logger are not used. However, the children of this logger will inherit its appenders, unless the children have their additivity flag set to false too. See the user manual for more details.

See Also

#### Reference

Logger Class
log4net.Repository.Hierarchy Namespace