LoggingEvent Identity Property | Apache log4net™ SDK Documentation

Gets the identity of the current thread principal.

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

C#
VB
C++
F#
Copy

    public string Identity { get; }

    Public ReadOnly Property Identity As String
    	Get

    public:
    property String^ Identity {
    	String^ get ();
    }

    member Identity : string with get

#### Property Value

Type: String
The string name of the identity of the current thread principal.
Remarks

Calls System.Threading.Thread.CurrentPrincipal.Identity.Name to get the name of the current thread principal.

See Also

#### Reference

LoggingEvent Class
log4net.Core Namespace