EventLogAppender MachineName Property | Apache log4net™ SDK Documentation

This property is used to return the name of the computer to use when accessing the event logs. Currently, this is the current computer, denoted by a dot "."

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

C#
VB
C++
F#
Copy

    public string MachineName { get; set; }

    Public Property MachineName As String
    	Get
    	Set

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

    member MachineName : string with get, set

#### Property Value

Type: String
The string name of the machine holding the event log that will be logged into.
Remarks

This property cannot be changed. It is currently set to '.' i.e. the local machine. This may be changed in future.
See Also

#### Reference

EventLogAppender Class
log4net.Appender Namespace