Interface IBuildLogger
Interface for monitoring the build process. Several tasks will log details of their progress through this interface. See the Build Logging documentation for more details.
Namespace: UnityEditor.Build.Pipeline.Interfaces
Assembly: Unity.ScriptableBuildPipeline.Editor.dll
Syntax
public interface IBuildLogger : IContextObject
Methods
AddEntry(LogLevel, string)
Adds details to the active build step
Declaration
void AddEntry(LogLevel level, string msg)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | level | The log level of this entry. |
string | msg | The message to add. |
BeginBuildStep(LogLevel, string, bool)
Should be called when beginning a build step.
Declaration
void BeginBuildStep(LogLevel level, string stepName, bool subStepsCanBeThreaded)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | level | The log level of this step. |
string | stepName | A name associated with the step. It is recommended that this name does not include specific context about the step; dynamic context should be added under the step as an entry. |
bool | subStepsCanBeThreaded | True if within this build step the IBuildLogger will be used on multiple threads. |
EndBuildStep()
Ends the build step.
Declaration
void EndBuildStep()