Class UnityLogRedirector
Implements ILogHandler for redirection of Unity logs.
Inherited Members
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
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 |