EventLogAppender LogName Property | Apache log4net™ SDK Documentation

The name of the log where messages will be stored.

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

C#
VB
C++
F#
Copy

    public string LogName { get; set; }

    Public Property LogName As String
    	Get
    	Set

    public:
    property String^ LogName {
    	String^ get ();
    	void set (String^ value);
    }

    member LogName : string with get, set

#### Property Value

Type: String
The string name of the log where messages will be stored.
Remarks

This is the name of the log as it appears in the Event Viewer tree. The default value is to log into the Application log, this is where most applications write their events. However if you need a separate log for your application (or applications) then you should set the LogName appropriately.

This should not be used to distinguish your event log messages from those of other applications, the ApplicationName property should be used to distinguish events. This property should be used to group together events into a single log.

See Also

#### Reference

EventLogAppender Class
log4net.Appender Namespace