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.
Inherited Members
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. |