Table of Contents

Class LogMessageExtensions

Namespace
Stride.Core.Diagnostics
Assembly
Stride.Core.dll

A set of extensions method to use with the LogMessage class.

public static class LogMessageExtensions
Inheritance
LogMessageExtensions

Methods

IsAtLeast(ILogMessage, LogMessageType)

Gets whether the given log message is at least as severe as the given severity level.

public static bool IsAtLeast(this ILogMessage logMessage, LogMessageType minSeverity)

Parameters

logMessage ILogMessage

The log message.

minSeverity LogMessageType

The minimal severity level.

Returns

bool

true if the given log message is at least as severe as the given severity level, false otherwise.

IsAtMost(ILogMessage, LogMessageType)

Gets whether the given log message is at most as severe as the given severity level.

public static bool IsAtMost(this ILogMessage logMessage, LogMessageType maxSeverity)

Parameters

logMessage ILogMessage

The log message.

maxSeverity LogMessageType

The maximal severity level.

Returns

bool

true if the given log message is at most as severe as the given severity level, false otherwise.

IsDebug(ILogMessage)

Gets whether the given log message is a Debug message type

public static bool IsDebug(this ILogMessage logMessage)

Parameters

logMessage ILogMessage

The log message.

Returns

bool

true if the given log message is a Debug message, false otherwise.

IsError(ILogMessage)

Gets whether the given log message is a Error message type

public static bool IsError(this ILogMessage logMessage)

Parameters

logMessage ILogMessage

The log message.

Returns

bool

true if the given log message is a Error message, false otherwise.

IsFatal(ILogMessage)

Gets whether the given log message is a Fatal message type

public static bool IsFatal(this ILogMessage logMessage)

Parameters

logMessage ILogMessage

The log message.

Returns

bool

true if the given log message is a Fatal message, false otherwise.

IsInfo(ILogMessage)

Gets whether the given log message is a Info message type

public static bool IsInfo(this ILogMessage logMessage)

Parameters

logMessage ILogMessage

The log message.

Returns

bool

true if the given log message is a Info message, false otherwise.

IsVerbose(ILogMessage)

Gets whether the given log message is a Verbose message type

public static bool IsVerbose(this ILogMessage logMessage)

Parameters

logMessage ILogMessage

The log message.

Returns

bool

true if the given log message is a Verbose message, false otherwise.

IsWarning(ILogMessage)

Gets whether the given log message is a Warning message type

public static bool IsWarning(this ILogMessage logMessage)

Parameters

logMessage ILogMessage

The log message.

Returns

bool

true if the given log message is a Warning message, false otherwise.