docs.unity.cn
    Show / Hide Table of Contents

    Class XRLoggingUtils

    Utility methods for logging. These methods will not log anything if tests are being run via command line

    Inheritance
    Object
    XRLoggingUtils
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.XR.CoreUtils
    Syntax
    public static class XRLoggingUtils

    Methods

    Log(String, Object)

    Debug.Log, but will not print anything if tests are being run

    Declaration
    public static void Log(string message, Object context = null)
    Parameters
    Type Name Description
    String message

    Log message for display.

    Object context

    Object to which the message applies.

    LogError(String, Object)

    Debug.LogError, but will not print anything if tests are being run

    Declaration
    public static void LogError(string message, Object context = null)
    Parameters
    Type Name Description
    String message

    Error message for display.

    Object context

    Object to which the message applies.

    LogException(Exception, Object)

    Debug.LogException, but will not print anything if tests are being run

    Declaration
    public static void LogException(Exception exception, Object context = null)
    Parameters
    Type Name Description
    Exception exception

    Runtime Exception.

    Object context

    Object to which the message applies.

    LogWarning(String, Object)

    Debug.LogWarning, but will not print anything if tests are being run

    Declaration
    public static void LogWarning(string message, Object context = null)
    Parameters
    Type Name Description
    String message

    Warning message for display.

    Object context

    Object to which the message applies.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, December 21, 2022
    Terms of use