docs.unity3d.com
    Show / Hide Table of Contents

    Class StringSink

    String sink class

    Inheritance
    Object
    SinkSystemBase
    StringSink
    Inherited Members
    SinkSystemBase.SinkId
    SinkSystemBase.IsInitialized
    SinkSystemBase.Handle
    SinkSystemBase.SystemConfig
    SinkSystemBase.ScheduleUpdate(LogControllerScopedLock, JobHandle)
    SinkSystemBase.NeedsStackTrace()
    SinkSystemBase.SetMinimalLogLevel(LogLevel)
    SinkSystemBase.GetMinimalLogLevel()
    SinkSystemBase.OnSinkFatalError(FixedString512Bytes)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Logging.Sinks
    Syntax
    [BurstCompile]
    public class StringSink : SinkSystemBase, IDisposable

    Methods

    AssertNoSinks()

    Debug assertion that makes sure there is no StringSinks

    Declaration
    public static void AssertNoSinks()

    Dispose()

    Dispose the sink

    Declaration
    public override void Dispose()
    Overrides
    SinkSystemBase.Dispose()

    GetString()

    Get everything that was written as a string

    Declaration
    public string GetString()
    Returns
    Type Description
    String

    String with all output in the sink

    Initialize(Logger, SinkConfiguration)

    Initialization of the sink using Logger and SinkConfiguration of this Sink

    Declaration
    public override void Initialize(Logger logger, SinkConfiguration systemConfig)
    Parameters
    Type Name Description
    Logger logger

    Logger that owns the sink

    SinkConfiguration systemConfig

    Configuration

    Overrides
    SinkSystemBase.Initialize(Logger, SinkConfiguration)

    ToSinkStruct()

    Creates LogController.SinkStruct

    Declaration
    public override LogController.SinkStruct ToSinkStruct()
    Returns
    Type Description
    LogController.SinkStruct

    SinkStruct

    Overrides
    SinkSystemBase.ToSinkStruct()
    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