docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class XRLoggingUtils

    Utility methods for logging.

    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
    Assembly: solution.dll
    Syntax
    public static class XRLoggingUtils
    Remarks

    These methods mirror the standard Debug log methods, but do not log anything if tests are being run via command line (using -runTests).

    See Running tests from the command line for information about running tests.

    Methods

    Name Description
    Log(string, Object)

    Same as Log(object, Object), but does not print anything if tests are being run.

    LogError(string, Object)

    Same as LogError(object, Object), but does not print anything if tests are being run.

    LogException(Exception, Object)

    Same as LogException(Exception, Object), but does not print anything if tests are being run.

    LogWarning(string, Object)

    Same as LogWarning(object, Object), but does not print anything if tests are being run.

    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)