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
ILogMessageThe log message.
minSeverity
LogMessageTypeThe 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
ILogMessageThe log message.
maxSeverity
LogMessageTypeThe 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
ILogMessageThe log message.
Returns
IsError(ILogMessage)
Gets whether the given log message is a Error message type
public static bool IsError(this ILogMessage logMessage)
Parameters
logMessage
ILogMessageThe log message.
Returns
IsFatal(ILogMessage)
Gets whether the given log message is a Fatal message type
public static bool IsFatal(this ILogMessage logMessage)
Parameters
logMessage
ILogMessageThe log message.
Returns
IsInfo(ILogMessage)
Gets whether the given log message is a Info message type
public static bool IsInfo(this ILogMessage logMessage)
Parameters
logMessage
ILogMessageThe log message.
Returns
IsVerbose(ILogMessage)
Gets whether the given log message is a Verbose message type
public static bool IsVerbose(this ILogMessage logMessage)
Parameters
logMessage
ILogMessageThe log message.
Returns
IsWarning(ILogMessage)
Gets whether the given log message is a Warning message type
public static bool IsWarning(this ILogMessage logMessage)
Parameters
logMessage
ILogMessageThe log message.