docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LoggerExtension

    Helpers function for logging

    Inheritance
    object
    LoggerExtension
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.Common
    Assembly: Unity.Cloud.Common.dll
    Syntax
    public static class LoggerExtension

    Methods

    LogCritical(UCLogger, Exception)

    Log a message at the Critical log level.

    Declaration
    public static void LogCritical(this UCLogger logger, Exception exception)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    Exception exception

    The exception to log.

    LogCritical(UCLogger, Exception, string, params object[])

    Log an Exception at the Error log level.

    Declaration
    public static void LogCritical(this UCLogger logger, Exception exception, string message, params object[] messageArgs)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    Exception exception
    string message

    The log message.

    object[] messageArgs

    The message arguments.

    LogCritical(UCLogger, string, params object[])

    Log an Exception at the Error log level.

    Declaration
    public static void LogCritical(this UCLogger logger, string message, params object[] messageArgs)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    string message

    The log message.

    object[] messageArgs

    The message arguments.

    LogDebug(UCLogger, Exception)

    Log a message at the Debug log level.

    Declaration
    public static void LogDebug(this UCLogger logger, Exception exception)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    Exception exception

    The exception to log.

    LogDebug(UCLogger, Exception, string, params object[])

    Log a message at the Debug log level.

    Declaration
    public static void LogDebug(this UCLogger logger, Exception exception, string message, params object[] messageArgs)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    Exception exception

    The exception to log.

    string message

    The log message.

    object[] messageArgs

    The message arguments.

    LogDebug(UCLogger, string, params object[])

    Log a message at the Debug log level.

    Declaration
    public static void LogDebug(this UCLogger logger, string message, params object[] messageArgs)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    string message

    The log message.

    object[] messageArgs

    The message arguments.

    LogError(UCLogger, Exception)

    Log a message at the Error log level.

    Declaration
    public static void LogError(this UCLogger logger, Exception exception)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    Exception exception

    The exception to log.

    LogError(UCLogger, Exception, string, params object[])

    Log a message at the Error log level.

    Declaration
    public static void LogError(this UCLogger logger, Exception exception, string message, params object[] messageArgs)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    Exception exception

    The exception to log.

    string message

    The log message.

    object[] messageArgs

    The message arguments.

    LogError(UCLogger, string, params object[])

    Log a message at the Error log level.

    Declaration
    public static void LogError(this UCLogger logger, string message, params object[] messageArgs)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    string message

    The log message.

    object[] messageArgs

    The message arguments.

    LogInformation(UCLogger, Exception)

    Log a message at the Information log level.

    Declaration
    public static void LogInformation(this UCLogger logger, Exception exception)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    Exception exception

    The exception to log.

    LogInformation(UCLogger, Exception, string, params object[])

    Log a message at the Information log level.

    Declaration
    public static void LogInformation(this UCLogger logger, Exception exception, string message, params object[] messageArgs)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    Exception exception

    The exception to log.

    string message

    The log message.

    object[] messageArgs

    The message arguments.

    LogInformation(UCLogger, string, params object[])

    Log a message at the Information log level.

    Declaration
    public static void LogInformation(this UCLogger logger, string message, params object[] messageArgs)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    string message

    The log message.

    object[] messageArgs

    The message arguments.

    LogTrace(UCLogger, Exception)

    Log a message at the Trace log level.

    Declaration
    public static void LogTrace(this UCLogger logger, Exception exception)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    Exception exception

    The exception to log.

    LogTrace(UCLogger, Exception, string, params object[])

    Log a message at the Trace log level.

    Declaration
    public static void LogTrace(this UCLogger logger, Exception exception, string message, params object[] messageArgs)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    Exception exception

    The exception to log.

    string message

    The log message.

    object[] messageArgs

    The message arguments.

    LogTrace(UCLogger, string, params object[])

    Log a message at the Trace log level.

    Declaration
    public static void LogTrace(this UCLogger logger, string message, params object[] messageArgs)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    string message

    The log message.

    object[] messageArgs

    The message arguments.

    LogWarning(UCLogger, Exception)

    Log a message at the Warning log level.

    Declaration
    public static void LogWarning(this UCLogger logger, Exception exception)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    Exception exception

    The exception to log.

    LogWarning(UCLogger, Exception, string, params object[])

    Log a message at the Warning log level.

    Declaration
    public static void LogWarning(this UCLogger logger, Exception exception, string message, params object[] messageArgs)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    Exception exception

    The exception to log.

    string message

    The log message.

    object[] messageArgs

    The message arguments.

    LogWarning(UCLogger, string, params object[])

    Log a message at the Warning log level.

    Declaration
    public static void LogWarning(this UCLogger logger, string message, params object[] messageArgs)
    Parameters
    Type Name Description
    UCLogger logger

    The logger.

    string message

    The log message.

    object[] messageArgs

    The message arguments.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)