docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MagicLeapLogger

    Logging class that collects various logging facilities under one static class.

    Inheritance
    object
    MagicLeapLogger
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.MagicLeap
    Assembly: UnityEngine.XR.MagicLeap.dll
    Syntax
    public static class MagicLeapLogger

    Methods

    Assert(bool, string, string, params object[])

    Assert

    Declaration
    [Conditional("DEVELOPMENT_BUILD")]
    public static void Assert(bool condition, string tag, string format, params object[] args)
    Parameters
    Type Name Description
    bool condition

    Condition to test against

    string tag

    Reference Tag

    string format

    String formatting

    object[] args

    Arguments to pass into format

    AssertError(bool, string, string, params object[])

    Assert and Error

    Declaration
    public static void AssertError(bool condition, string tag, string format, params object[] args)
    Parameters
    Type Name Description
    bool condition

    Condition to test against

    string tag

    Reference Tag

    string format

    String formatting

    object[] args

    Arguments to pass into format

    Debug(string, string, params object[])

    Log a Debug message

    Declaration
    [Conditional("DEVELOPMENT_BUILD")]
    public static void Debug(string tag, string format, params object[] args)
    Parameters
    Type Name Description
    string tag

    Reference Tag

    string format

    String Format for the message

    object[] args

    Arguments to pass into format

    Error(string, string, params object[])

    Log an Error message

    Declaration
    public static void Error(string tag, string format, params object[] args)
    Parameters
    Type Name Description
    string tag

    Reference Tag

    string format

    String Format for the message

    object[] args

    Arguments to pass into format

    Warning(string, string, params object[])

    Log a Warning message

    Declaration
    public static void Warning(string tag, string format, params object[] args)
    Parameters
    Type Name Description
    string tag

    Reference Tag

    string format

    String Format for the message

    object[] args

    Arguments to pass into format

    In This Article
    Back to top
    Copyright © 2025 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)