docs.unity3d.com
    Show / Hide Table of Contents

    Class LoggerSyncModeConfig

    Use to set the synchronization mode of the logger

    Inheritance
    Object
    LoggerSyncModeConfig
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Logging
    Syntax
    public class LoggerSyncModeConfig

    Properties

    Get

    Returns currently set minimal level

    Declaration
    public SyncMode Get { get; }
    Property Value
    Type Description
    SyncMode

    Methods

    FatalIsSync()

    Sets SyncMode to FatalIsSync
    All messages are processed asynchronous, after they were logged. But if Fatal message is logged - log is flushed. Use this option if you want speed, but also want to make sure logs are not lost in case of Fatal error

    Declaration
    public LoggerConfig FatalIsSync()
    Returns
    Type Description
    LoggerConfig

    LoggerConfig for other settings to set

    FullAsync()

    Sets SyncMode to FullAsync
    All messages are processed asynchronous, after they were logged. This is the fastest way, but can lead to lost messages in case of crashes

    Declaration
    public LoggerConfig FullAsync()
    Returns
    Type Description
    LoggerConfig

    LoggerConfig for other settings to set

    FullSync()

    Sets SyncMode to FullSync
    All messages are processed immediately. Slowest mode, but all messages are guaranteed to be logged

    Declaration
    public LoggerConfig FullSync()
    Returns
    Type Description
    LoggerConfig

    LoggerConfig for other settings to set

    Set(SyncMode)

    Sets minimal level of logs

    Declaration
    public LoggerConfig Set(SyncMode minLevel)
    Parameters
    Type Name Description
    SyncMode minLevel
    Returns
    Type Description
    LoggerConfig

    LoggerConfig for other settings to set

    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