docs.unity3d.com
    Show / Hide Table of Contents

    Class BuildLoggerExternsions

    Contains extension methods for the IBuildLogger interface

    Inheritance
    Object
    BuildLoggerExternsions
    Namespace: UnityEditor.Build.Pipeline.Interfaces
    Syntax
    public static class BuildLoggerExternsions

    Methods

    AddEntrySafe(IBuildLogger, LogLevel, String)

    Adds details to the active build step

    Declaration
    public static void AddEntrySafe(this IBuildLogger log, LogLevel level, string msg)
    Parameters
    Type Name Description
    IBuildLogger log

    The build log.

    LogLevel level

    The log level of this entry.

    String msg

    The message to add.

    ScopedStep(IBuildLogger, LogLevel, String, Boolean)

    Begins a new build step and returns an ScopedBuildStep which will end the build step when disposed. It is recommended to use this in conjunction with the using statement.

    Declaration
    public static ScopedBuildStep ScopedStep(this IBuildLogger log, LogLevel level, string stepName, bool multiThreaded = false)
    Parameters
    Type Name Description
    IBuildLogger log

    The build log.

    LogLevel level

    The log level of this step.

    String stepName

    A name associated with the step.

    Boolean multiThreaded

    True if within this build step the IBuildLogger will be used on multiple threads.

    Returns
    Type Description
    ScopedBuildStep

    Returns a ScopedBuildStep that will end the build step when it is disposed.

    ScopedStep(IBuildLogger, LogLevel, String, String)

    Begins a new build step and returns an ScopedBuildStep which will end the build step when disposed. It is recommended to use this in conjunction with the using statement.

    Declaration
    public static ScopedBuildStep ScopedStep(this IBuildLogger log, LogLevel level, string stepName, string context)
    Parameters
    Type Name Description
    IBuildLogger log

    The build log.

    LogLevel level

    The log level of this step.

    String stepName

    A name associated with the step.

    String context

    Adds an entry message the build step. This allows attaching specific context data without changing the stepName.

    Returns
    Type Description
    ScopedBuildStep

    Returns a ScopedBuildStep that will end the build step when it is disposed.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023