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

    Show / Hide Table of Contents

    Class LoggerConfig

    Configuration for Logger. Can be used to setup Logger and create it.

    Inheritance
    object
    LoggerConfig
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Logging
    Assembly: solution.dll
    Syntax
    public class LoggerConfig

    Constructors

    Name Description
    LoggerConfig()

    Create LoggerConfig to setup a new Logger

    Fields

    Name Description
    MinimumLevel

    Set minimal LogLevel that will be processed by the Logger

    SyncMode

    Set the SyncMode that will be used by the Logger

    Properties

    Name Description
    WriteTo

    Use this method to add new Sink

    Methods

    Name Description
    CaptureStacktrace(bool)

    Should this logger capture stacktraces

    CreateLogger()

    Call that creates Logger using default LogMemoryManagerParameters

    CreateLogger(LogMemoryManagerParameters)

    Call that creates Logger

    GetCaptureStacktrace()

    Returns current capture stacktrace state.

    GetOutputTemplate()

    Returns current template that is used. See also OutputTemplate(FixedString512Bytes)

    GetRedirectUnityLogs()

    Returns current log startup state.

    OutputTemplate(FixedString512Bytes)

    Template that should be used by sinks by default. All sinks without explicit OutputTemplate will use this one after this call.

    RedirectUnityLogs(bool)

    Should this logger redirect Unity logs

    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)