docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BuildLogger

    Logging overrides for SBP build logs.

    Inheritance
    object
    BuildLogger
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Build.Pipeline.Utilities
    Assembly: Unity.ScriptableBuildPipeline.Editor.dll
    Syntax
    public static class BuildLogger

    Methods

    Log(object)

    Logs general information.

    Declaration
    [Conditional("DEBUG")]
    public static void Log(object msg)
    Parameters
    Type Name Description
    object msg

    The message object to display.

    Log(string)

    Logs general information.

    Declaration
    [Conditional("DEBUG")]
    public static void Log(string msg)
    Parameters
    Type Name Description
    string msg

    The message to display.

    Log(string, params object[])

    Logs general information.

    Declaration
    [Conditional("DEBUG")]
    public static void Log(string msg, params object[] attrs)
    Parameters
    Type Name Description
    string msg

    The message to display.

    object[] attrs

    The objects formatted in the message.

    LogCache(string, params object[])

    Logs build cache information.

    Declaration
    [Conditional("BUILD_CACHE_DEBUG")]
    public static void LogCache(string msg, params object[] attrs)
    Parameters
    Type Name Description
    string msg

    The message to display.

    object[] attrs

    The objects formatted in the message.

    LogCacheWarning(string, params object[])

    Logs a warning about the build cache.

    Declaration
    [Conditional("BUILD_CACHE_DEBUG")]
    public static void LogCacheWarning(string msg, params object[] attrs)
    Parameters
    Type Name Description
    string msg

    The message to display.

    object[] attrs

    The objects formatted in the message.

    LogError(object)

    Logs a general error.

    Declaration
    [Conditional("DEBUG")]
    public static void LogError(object msg)
    Parameters
    Type Name Description
    object msg

    The message object to display.

    LogError(string)

    Logs a general error.

    Declaration
    [Conditional("DEBUG")]
    public static void LogError(string msg)
    Parameters
    Type Name Description
    string msg

    The message to display.

    LogError(string, params object[])

    Logs a general error.

    Declaration
    [Conditional("DEBUG")]
    public static void LogError(string msg, params object[] attrs)
    Parameters
    Type Name Description
    string msg

    The message to display.

    object[] attrs

    The objects formatted in the message.

    LogException(Exception)

    Logs a general exception.

    Declaration
    [Conditional("DEBUG")]
    public static void LogException(Exception e)
    Parameters
    Type Name Description
    Exception e

    The exception to display.

    LogWarning(object)

    Logs a general warning.

    Declaration
    [Conditional("DEBUG")]
    public static void LogWarning(object msg)
    Parameters
    Type Name Description
    object msg

    The message object to display.

    LogWarning(string)

    Logs a general warning.

    Declaration
    [Conditional("DEBUG")]
    public static void LogWarning(string msg)
    Parameters
    Type Name Description
    string msg

    The message to display.

    LogWarning(string, params object[])

    Logs a general warning.

    Declaration
    [Conditional("DEBUG")]
    public static void LogWarning(string msg, params object[] attrs)
    Parameters
    Type Name Description
    string msg

    The message object to display.

    object[] attrs

    The objects formatted in the message.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)