docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UnityLogRedirector

    Implements ILogHandler for redirection of Unity logs.

    Inheritance
    object
    UnityLogRedirector
    Implements
    ILogHandler
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Logging
    Assembly: Unity.Logging.dll
    Syntax
    [HideInStackTrace(false)]
    public class UnityLogRedirector : ILogHandler

    Methods

    LogException(Exception, Object)

    Redirect Unity exception log

    Declaration
    public void LogException(Exception exception, Object context)
    Parameters
    Type Name Description
    Exception exception

    Runtime Exception

    Object context

    Object to which the message applies

    LogFormat(LogType, Object, string, params object[])

    Redirect Unity log

    Declaration
    public void LogFormat(LogType logType, Object context, string format, params object[] args)
    Parameters
    Type Name Description
    LogType logType

    The type of the log message

    Object context

    Object to which the message applies

    string format

    A composite format string

    object[] args

    Format arguments

    Implements

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