XmlLayout Prefix Property | Apache log4net™ SDK Documentation

The prefix to use for all element names

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

C#
VB
C++
F#
Copy

    public string Prefix { get; set; }

    Public Property Prefix As String
    	Get
    	Set

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

    member Prefix : string with get, set

#### Property Value

Type: String
Remarks

The default prefix is log4net. Set this property to change the prefix. If the prefix is set to an empty string then no prefix will be written.

See Also

#### Reference

XmlLayout Class
log4net.Layout Namespace