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