docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StringSink.Configuration

    Configuration for string sink

    Inheritance
    object
    SinkConfiguration
    StringSink.Configuration
    Inherited Members
    SinkConfiguration.MinLevel
    SinkConfiguration.OutputTemplate
    SinkConfiguration.CaptureStackTraces
    SinkConfiguration.LogFormatter
    SinkConfiguration.CreateAndInitializeSinkInstance<T>(Logger, SinkConfiguration)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Logging.Sinks
    Assembly: Unity.Logging.dll
    Syntax
    public class StringSink.Configuration : SinkConfiguration

    Constructors

    Configuration(LoggerWriterConfig, FormatterStruct, bool?, LogLevel?, FixedString512Bytes?)

    Constructor for the configuration

    Declaration
    public Configuration(LoggerWriterConfig writeTo, FormatterStruct formatter, bool? captureStackTraceOverride = null, LogLevel? minLevelOverride = null, FixedString512Bytes? outputTemplateOverride = null)
    Parameters
    Type Name Description
    LoggerWriterConfig writeTo

    Logger config

    FormatterStruct formatter

    Formatter that should be used by this sink. Text is default

    bool? captureStackTraceOverride

    True if stack traces should be captured. Null if default

    LogLevel? minLevelOverride

    Minimal level of logs for this particular sink. Null if common level should be used

    FixedString512Bytes? outputTemplateOverride

    Output message template for this particular sink. Null if common template should be used

    Methods

    CreateSinkInstance(Logger)

    Creates the StringSink

    Declaration
    public override SinkSystemBase CreateSinkInstance(Logger logger)
    Parameters
    Type Name Description
    Logger logger

    Logger that owns sink

    Returns
    Type Description
    SinkSystemBase

    SinkSystemBase

    Overrides
    SinkConfiguration.CreateSinkInstance(Logger)
    In This Article
    Back to top
    Copyright © 2025 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)