Creates a new LogEntrySource.

Namespace: Keystone.Almanac
Assembly: Keystone.Almanac (in Keystone.Almanac.dll)

public LogEntrySource( 
string applicationName
string componentName = "not set", 
IPrincipal user = null 
)
This language is not supported or no code example is available.

Parameters

applicationName

Type: string

The entry issuing application name.

componentName

Type: string

The entry issuing component name.

user

Type: IPrincipal

The entry associated user, if any.

Exception type Condition

ArgumentException

If a null reference (Nothing in Visual Basic) or empty value is given for the applicationName argument.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono