LoggerExtensionsToLogLevel Method

Converts a MessageLevel to a LogLevel.

Definition

Namespace: Gemstone.Diagnostics
Assembly: Gemstone.Diagnostics (in Gemstone.Diagnostics.dll) Version: 1.0.128 -- Release Build+d9d157c80da59365061f9bf4a5d1ecd0f0496e1b
public static LogLevel ToLogLevel(
	this MessageLevel level
)

Parameters

level  MessageLevel
MessageLevel to convert.

Return Value

LogLevel
LogLevel equivalent of the specified MessageLevel.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MessageLevel. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

Note that Trace has no equivalent MessageLevel.

See Also