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

    Show / Hide Table of Contents

    Class SinkSystemBase

    Base Sink class that implements SinkSystemBase

    Inheritance
    object
    SinkSystemBase
    FileSinkSystem
    StdOutSinkSystem
    StringSink
    UnityDebugLogSink
    UnityEditorConsoleSink
    Implements
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Logging.Sinks
    Assembly: solution.dll
    Syntax
    [BurstCompile]
    public abstract class SinkSystemBase : IDisposable

    Fields

    Name Description
    Handle

    Logger's handle that owns the sink

    IsInitialized

    True if Sink was initialized and can run 'Update'

    SinkId

    Id of this sink in the logger

    SystemConfig

    SinkConfiguration that was used to setup the sink

    Methods

    Name Description
    Dispose()

    See IDisposable. Used to dispose all the resources associated with this sink.

    GetMinimalLogLevel()

    Get minimal log level that this Sink is interested in

    Initialize(Logger, SinkConfiguration)

    Method to initialize the sink

    NeedsStackTrace()

    Returns true if this sink is interested in the stack traces.

    OnSinkFatalError(FixedString512Bytes)

    If any error happens - this method will self-log it and set IsInitialized to false, disabling the sink

    ScheduleUpdate(LogControllerScopedLock, JobHandle)

    Schedule update for this sink. Usually schedules an internal SinkJob.

    SetMinimalLogLevel(LogLevel)

    Set minimal log level that this Sink is interested in

    ToSinkStruct()

    SinkStruct that is burst-compatible struct that represents this sink

    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)