docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GraphicsTestLogger

    A logger for the graphics tests. This class is used to log messages to a file. The default log file is created as Logs/GraphicsTestLogs.log in the project's root directory.

    Inheritance
    object
    GraphicsTestLogger
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.TestTools.Graphics
    Assembly: UnityEngine.TestTools.Graphics.dll
    Syntax
    public sealed class GraphicsTestLogger

    Methods

    Log(LogType, string, string)

    Logs a message to the log file. The message is also written to the Unity console.

    Declaration
    public static void Log(LogType type, string message, string logPath = "../Logs/GraphicsTestLogs.log")
    Parameters
    Type Name Description
    LogType type

    The type of message to log. This can be LogType.Error, LogType.Warning, or LogType.Log.

    string message

    The message to log.

    string logPath

    The path to the log file. If this is null or empty, the default log path is used.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    Thrown if the type is not a valid LogType.

    In This Article
    Back to top
    Copyright © 2024 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)