Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    LoggerExtensions Class

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

    Extensions for ILogger.

    System.Object → LoggerExtensions
    Derived from LoggerExtensions:

    public static class LoggerExtensions
    Name Description
    Methods
    Debug(ILogger, String, CallerInfo)

    Logs the specified debug message.

    Debug(ILogger, String, Exception, CallerInfo)

    Logs the specified debug message with an exception.

    Error(ILogger, String, CallerInfo)

    Logs the specified error message.

    Error(ILogger, String, Exception, CallerInfo)

    Logs the specified error message with an exception.

    Fatal(ILogger, String, CallerInfo)

    Logs the specified fatal message.

    Fatal(ILogger, String, Exception, CallerInfo)

    Logs the specified fatal message with an exception.

    Info(ILogger, String, CallerInfo)

    Logs the specified info message.

    Info(ILogger, String, Exception, CallerInfo)

    Logs the specified info message with an exception.

    Verbose(ILogger, String, CallerInfo)

    Logs the specified verbose message.

    Verbose(ILogger, String, Exception, CallerInfo)

    Logs the specified verbose message with an exception.

    Warning(ILogger, String, CallerInfo)

    Logs the specified warning message.

    Warning(ILogger, String, Exception, CallerInfo)

    Logs the specified warning message with an exception.

    | Improve this Doc View Source

    Methods


    Debug(ILogger, String, CallerInfo)

    Logs the specified debug message.

    public static void Debug(this ILogger logger, string message, CallerInfo callerInfo = null)
    Parameters
    Type Name Description
    ILogger logger

    The logger.

    System.String message

    The debug message.

    CallerInfo callerInfo

    Information about the caller. Default is null, otherwise use Get(String, String, Int32).


    Debug(ILogger, String, Exception, CallerInfo)

    Logs the specified debug message with an exception.

    public static void Debug(this ILogger logger, string message, Exception exception, CallerInfo callerInfo = null)
    Parameters
    Type Name Description
    ILogger logger

    The logger.

    System.String message

    The debug message.

    System.Exception exception

    An exception to log with the message.

    CallerInfo callerInfo

    Information about the caller. Default is null, otherwise use Get(String, String, Int32).


    Error(ILogger, String, CallerInfo)

    Logs the specified error message.

    public static void Error(this ILogger logger, string message, CallerInfo callerInfo = null)
    Parameters
    Type Name Description
    ILogger logger

    The logger.

    System.String message

    The error message.

    CallerInfo callerInfo

    Information about the caller. Default is null, otherwise use Get(String, String, Int32).


    Error(ILogger, String, Exception, CallerInfo)

    Logs the specified error message with an exception.

    public static void Error(this ILogger logger, string message, Exception exception, CallerInfo callerInfo = null)
    Parameters
    Type Name Description
    ILogger logger

    The logger.

    System.String message

    The error message.

    System.Exception exception

    An exception to log with the message.

    CallerInfo callerInfo

    Information about the caller. Default is null, otherwise use Get(String, String, Int32).


    Fatal(ILogger, String, CallerInfo)

    Logs the specified fatal message.

    public static void Fatal(this ILogger logger, string message, CallerInfo callerInfo = null)
    Parameters
    Type Name Description
    ILogger logger

    The logger.

    System.String message

    The fatal message.

    CallerInfo callerInfo

    Information about the caller. Default is null, otherwise use Get(String, String, Int32).


    Fatal(ILogger, String, Exception, CallerInfo)

    Logs the specified fatal message with an exception.

    public static void Fatal(this ILogger logger, string message, Exception exception, CallerInfo callerInfo = null)
    Parameters
    Type Name Description
    ILogger logger

    The logger.

    System.String message

    The fatal message.

    System.Exception exception

    An exception to log with the message.

    CallerInfo callerInfo

    Information about the caller. Default is null, otherwise use Get(String, String, Int32).


    Info(ILogger, String, CallerInfo)

    Logs the specified info message.

    public static void Info(this ILogger logger, string message, CallerInfo callerInfo = null)
    Parameters
    Type Name Description
    ILogger logger

    The logger.

    System.String message

    The info message.

    CallerInfo callerInfo

    Information about the caller. Default is null, otherwise use Get(String, String, Int32).


    Info(ILogger, String, Exception, CallerInfo)

    Logs the specified info message with an exception.

    public static void Info(this ILogger logger, string message, Exception exception, CallerInfo callerInfo = null)
    Parameters
    Type Name Description
    ILogger logger

    The logger.

    System.String message

    The info message.

    System.Exception exception

    An exception to log with the message.

    CallerInfo callerInfo

    Information about the caller. Default is null, otherwise use Get(String, String, Int32).


    Verbose(ILogger, String, CallerInfo)

    Logs the specified verbose message.

    public static void Verbose(this ILogger logger, string message, CallerInfo callerInfo = null)
    Parameters
    Type Name Description
    ILogger logger

    The logger.

    System.String message

    The verbose message.

    CallerInfo callerInfo

    Information about the caller. Default is null, otherwise use Get(String, String, Int32).


    Verbose(ILogger, String, Exception, CallerInfo)

    Logs the specified verbose message with an exception.

    public static void Verbose(this ILogger logger, string message, Exception exception, CallerInfo callerInfo = null)
    Parameters
    Type Name Description
    ILogger logger

    The logger.

    System.String message

    The verbose message.

    System.Exception exception

    An exception to log with the message.

    CallerInfo callerInfo

    Information about the caller. Default is null, otherwise use Get(String, String, Int32).


    Warning(ILogger, String, CallerInfo)

    Logs the specified warning message.

    public static void Warning(this ILogger logger, string message, CallerInfo callerInfo = null)
    Parameters
    Type Name Description
    ILogger logger

    The logger.

    System.String message

    The warning message.

    CallerInfo callerInfo

    Information about the caller. Default is null, otherwise use Get(String, String, Int32).


    Warning(ILogger, String, Exception, CallerInfo)

    Logs the specified warning message with an exception.

    public static void Warning(this ILogger logger, string message, Exception exception, CallerInfo callerInfo = null)
    Parameters
    Type Name Description
    ILogger logger

    The logger.

    System.String message

    The warning message.

    System.Exception exception

    An exception to log with the message.

    CallerInfo callerInfo

    Information about the caller. Default is null, otherwise use Get(String, String, Int32).


    • Improve this Doc
    • View Source
    In This Article

    Back to top

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