docs.unity3d.com
    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.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Logging.Sinks
    Syntax
    public class Configuration : SinkConfiguration

    Constructors

    Configuration(LoggerWriterConfig, FormatterStruct, Nullable<Boolean>, Nullable<LogLevel>, Nullable<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

    Nullable<Boolean> captureStackTraceOverride

    True if stack traces should be captured. Null if default

    Nullable<LogLevel> minLevelOverride

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

    Nullable<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)
    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