docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UnityLogOutput

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

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

    Properties

    CurrentLevel

    The current LogLevel.

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

    Enabled

    Whether logging is enabled.

    Declaration
    public bool Enabled { get; set; }
    Property Value
    Type Description
    bool

    Methods

    SetupUnityLogOutput()

    Clears any previous ILogOutput from LogOutputs and adds the UnityLogOutput.

    Declaration
    [InitializeOnLoadMethod]
    public static void SetupUnityLogOutput()
    Remarks

    Called automatically via InitializeOnLoadMethod attribute.

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