EventLogAppender Category Property | Apache log4net™ SDK Documentation

Gets or sets the Category to use unless one is explicitly specified via the LoggingEvent's properties.

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

C#
VB
C++
F#
Copy

    public short Category { get; set; }

    Public Property Category As Short
    	Get
    	Set

    public:
    property short Category {
    	short get ();
    	void set (short value);
    }

    member Category : int16 with get, set

#### Property Value

Type: Int16
Remarks

The Category of the event log entry will normally be set using the Category property (Properties) on the LoggingEvent. This property provides the fallback value which defaults to 0.

See Also

#### Reference

EventLogAppender Class
log4net.Appender Namespace