Class GraphLogger
A context to store and access logs provided to each nodes of a graph.
Inherited Members
Namespace: UnityEngine .Importer
Assembly: Unity.Importer.dll
Syntax
public abstract class GraphLogger
Methods
LogImportError(string, Object, int)
Logs import error. The error id would be accumulated if the error id is registered for analytics. The accumulated error ids and their counts during an import can be retrieved with GetErrorsForAnalytics.
Declaration
public abstract void LogImportError(string errorMessage, Object obj = null, int errorId = -1)
Parameters
Type | Name | Description |
---|---|---|
string | errorMessage | The error message. |
Object | obj | Optional Object that is targeted by the error. |
int | errorId | The internal error id used for analytics. |
LogImportWarning(string, Object, int)
Logs import warning. The warning id would be accumulated if the warning id is registered for analytics. The accumulated warning ids and their counts during an import can be retrieved with GetWarningsForAnalytics.
Declaration
public abstract void LogImportWarning(string warningMessage, Object obj = null, int warningId = -1)
Parameters
Type | Name | Description |
---|---|---|
string | warningMessage | The warning message. |
Object | obj | Optional Object that is targeted by the warning. |
int | warningId | The internal warning id used for analytics. |
RegisterAnalyticsData(string, object)
Register analytics data during import.
Declaration
public abstract void RegisterAnalyticsData(string key, object value)