docs.unity3d.com
    Show / Hide Table of Contents

    Class UnityLogRedirector

    Implements ILogHandler for redirection of Unity logs.

    Inheritance
    Object
    UnityLogRedirector
    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
    [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

    Implements
    ILogHandler.LogException(Exception, Object)

    LogFormat(LogType, Object, String, 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.LogFormat(LogType, Object, String, Object[])
    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