docs.unity3d.com
    Show / Hide Table of Contents

    Class UnityLogOutput

    Output logs into Unity's logging mechanism (Debug.unityLogger.Log)

    Inheritance
    Object
    UnityLogOutput
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Cloud.Common.Runtime
    Syntax
    public class UnityLogOutput : ILogOutput

    Properties

    CurrentLevel

    The current LogLevel.

    Declaration
    public LogLevel CurrentLevel { get; set; }
    Property Value
    Type Description
    LogLevel
    Implements
    ILogOutput.CurrentLevel

    Enabled

    Whether logging is enabled.

    Declaration
    public bool Enabled { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    ILogOutput.Enabled

    Methods

    SetupUnityLogOutput()

    Clears any previous ILogOutput from LogOutputs and adds the UnityLogOutput.

    Declaration
    public static void SetupUnityLogOutput()

    SetupUnityLogOutputRuntime()

    Set's up the UnityLogOutput at runtime.

    Declaration
    [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
    public static void SetupUnityLogOutputRuntime()
    Remarks

    Called automatically via RuntimeInitializeOnLoadMethodAttribute attribute with SubsystemRegistration

    Write(LogEvent)

    Writes a LogEvent.

    Declaration
    public void Write(LogEvent logEvent)
    Parameters
    Type Name Description
    LogEvent logEvent

    The event to log.

    Implements
    ILogOutput.Write(LogEvent)
    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