Creates a new LogEntry.

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

protected LogEntry( 
string typeName
string message
Nullable<int> categoryId
string operationName
Severity severity
Exception exception 
)
This language is not supported or no code example is available.

Parameters

typeName

Type: string

The type name of this entry.

message

Type: string

A brief explanatory text of this entry.

categoryId

Type: Nullable<int>

The cataloged number or error code that identifies well known entries.

operationName

Type: string

The operation name associated to this entry.

severity

Type: Severity

The application dependent degree of impact or relevance of this entry.

exception

Type: Exception

Optional parameter that defines the exception if any, associated to this entry.

Exception type Condition

ArgumentException

If a null reference (Nothing in Visual Basic) or empty value is given for the typeName or message arguments.

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