{!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 LogController.SinkStruct | Unity Logging | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct LogController.SinkStruct

    Burst-friendly way to represent a sink

    Implements
    IDisposable
    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 struct LogController.SinkStruct : IDisposable

    Fields

    Name Description
    CaptureStackTracesBytes

    If non-zero - it captures stacktraces

    Formatter

    Formatter that is used with this sink

    LastTimestamp

    Last timestamp that this sink processed. Sink will ignore all timestamps less/equal that this

    MinimalLevel

    Minimal level that this sink is interested in

    OnAfterSink

    Delegate called after the sink

    OnBeforeSink

    Delegate called before the sink

    OnDispose

    Delegate called on dispose of this sink

    OnLogMessageEmit

    Delegate called on message emit for this sink

    OutputTemplate

    Output template that this sink should use

    UserData

    User data

    Properties

    Name Description
    CaptureStackTraces

    True if sink needs stacktraces

    IsCreated

    True if the sink was created

    Methods

    Name Description
    Dispose()

    Dispose the sink

    GetUserData()

    User's data attached

    IsInterestedIn(ref LogMessage)

    Checks if the LogMessage's Timestamp and Level fits (see 'remarks') the sink. Updates sink's 'LastTimestamp' if method returns true.

    Process(ref LogMessage, ref FormatterStruct, ref UnsafeText, IntPtr, Allocator)

    Processes the LogMessage.

    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)