docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct LoggerHandle

    Structure that contains unique identifier of Logger

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Logging
    Assembly: Unity.Logging.dll
    Syntax
    public readonly struct LoggerHandle

    Fields

    Value

    Unique id of Logger. Valid value is not 0.

    Declaration
    public readonly uint Value
    Field Value
    Type Description
    uint

    Properties

    IsValid

    True if Value is not 0.

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    bool

    Methods

    CreateUsingKnownId(uint)

    Method to create a LoggerHandle from a long. Use this method only if you cannot use LoggerHandle for some reason and must use the long

    Declaration
    public static LoggerHandle CreateUsingKnownId(uint knownId)
    Parameters
    Type Name Description
    uint knownId

    Id that was taken from some LoggerHandle.Value, don't pass other longs

    Returns
    Type Description
    LoggerHandle

    LoggerHandle that uses the id that was provided.

    MustBeValid()

    Throws if this LoggerHandle is not valid. IsValid

    Declaration
    public void MustBeValid()
    Exceptions
    Type Condition
    Exception

    throws if this LoggerHandle is not valid

    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)