{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct LogMessage | Unity Logging | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct LogMessage

    The struct for dispatching and processing log messages.

    Implements
    IComparable<LogMessage>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Logging
    Assembly: solution.dll
    Syntax
    public readonly struct LogMessage : IComparable<LogMessage>
    Remarks

    Log message data is allocated and stored using LogMemoryManager, which is referenced by this struct via a PayloadHandle. Log messages can be dispatched through DispatchMessage(PayloadHandle, long, LogLevel).

    Constructors

    Name Description
    LogMessage(PayloadHandle, long, long, LogLevel)

    Create a new LogMessage

    Fields

    Name Description
    Level

    Log Level: Verbose, Debug, Info, Warning, Error, Fatal

    Payload

    References the log message data allocated through LogMemoryManager.

    StackTraceId

    StackTraceId

    Timestamp

    Timestamp to sort messages

    Methods

    Name Description
    CompareTo(LogMessage)

    Compares this LogMessage to another. Compares only timestamps. Needed for timestamp sorting

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