Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    LogMessageExtensions Class

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

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

    System.Object → LogMessageExtensions
    Derived from LogMessageExtensions:

    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

    | Improve this Doc View Source

    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

    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
    Type Name Description
    ILogMessage logMessage

    The log message.

    LogMessageType maxSeverity

    The maximal severity level.

    Returns
    Type Description
    System.Boolean

    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
    Type Name Description
    ILogMessage logMessage

    The log message.

    Returns
    Type Description
    System.Boolean

    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
    Type Name Description
    ILogMessage logMessage

    The log message.

    Returns
    Type Description
    System.Boolean

    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
    Type Name Description
    ILogMessage logMessage

    The log message.

    Returns
    Type Description
    System.Boolean

    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
    Type Name Description
    ILogMessage logMessage

    The log message.

    Returns
    Type Description
    System.Boolean

    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
    Type Name Description
    ILogMessage logMessage

    The log message.

    Returns
    Type Description
    System.Boolean

    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
    Type Name Description
    ILogMessage logMessage

    The log message.

    Returns
    Type Description
    System.Boolean

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


    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation