LogMessageExtensions Class
Namespace: Stride.Core.DiagnosticsAssembly: Stride.Core.dll
A set of extensions method to use with the LogMessage class.
public static class LogMessageExtensions
Name | Description | |
---|---|---|
Methods | ||
IsAtLeast(ILogMessage, LogMessageType) | Gets whether the given log message is at least as severe as the given severity level. |
|
IsAtMost(ILogMessage, LogMessageType) | Gets whether the given log message is at most as severe as the given severity level. |
|
IsDebug(ILogMessage) | Gets whether the given log message is a Debug message type |
|
IsError(ILogMessage) | Gets whether the given log message is a Error message type |
|
IsFatal(ILogMessage) | Gets whether the given log message is a Fatal message type |
|
IsInfo(ILogMessage) | Gets whether the given log message is a Info message type |
|
IsVerbose(ILogMessage) | Gets whether the given log message is a Verbose message type |
|
IsWarning(ILogMessage) | Gets whether the given log message is a Warning message type |
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
Type | Name | Description |
---|---|---|
ILogMessage | logMessage | The log message. |
LogMessageType | minSeverity | The minimal severity level. |
Returns
Type | Description |
---|---|
System.Boolean |
|
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
Type | Name | Description |
---|---|---|
ILogMessage | logMessage | The log message. |
LogMessageType | maxSeverity | The maximal severity level. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsDebug(ILogMessage)
Gets whether the given log message is a Debug message type
public static bool IsDebug(this ILogMessage logMessage)
Parameters
Type | Name | Description |
---|---|---|
ILogMessage | logMessage | The log message. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsError(ILogMessage)
Gets whether the given log message is a Error message type
public static bool IsError(this ILogMessage logMessage)
Parameters
Type | Name | Description |
---|---|---|
ILogMessage | logMessage | The log message. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsFatal(ILogMessage)
Gets whether the given log message is a Fatal message type
public static bool IsFatal(this ILogMessage logMessage)
Parameters
Type | Name | Description |
---|---|---|
ILogMessage | logMessage | The log message. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsInfo(ILogMessage)
Gets whether the given log message is a Info message type
public static bool IsInfo(this ILogMessage logMessage)
Parameters
Type | Name | Description |
---|---|---|
ILogMessage | logMessage | The log message. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsVerbose(ILogMessage)
Gets whether the given log message is a Verbose message type
public static bool IsVerbose(this ILogMessage logMessage)
Parameters
Type | Name | Description |
---|---|---|
ILogMessage | logMessage | The log message. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsWarning(ILogMessage)
Gets whether the given log message is a Warning message type
public static bool IsWarning(this ILogMessage logMessage)
Parameters
Type | Name | Description |
---|---|---|
ILogMessage | logMessage | The log message. |
Returns
Type | Description |
---|---|
System.Boolean |
|