docs.unity3d.com
    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.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Logging
    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
    UInt32

    Properties

    IsValid

    True if Value is not 0.

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

    Methods

    CreateUsingKnownId(UInt32)

    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
    UInt32 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 readonly void MustBeValid()
    Exceptions
    Type Condition
    Exception

    throws if this LoggerHandle is not valid

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023