Class BuildLogger | Scriptable Build Pipeline | 1.13.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class BuildLogger

    Logging overrides for SBP build logs.

    Inheritance
    Object
    BuildLogger
    Namespace: UnityEditor.Build.Pipeline.Utilities
    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, 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, 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, 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, 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, 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
    • Methods
      • Log(Object)
      • Log(String)
      • Log(String, Object[])
      • LogCache(String, Object[])
      • LogCacheWarning(String, Object[])
      • LogError(Object)
      • LogError(String)
      • LogError(String, Object[])
      • LogException(Exception)
      • LogWarning(Object)
      • LogWarning(String)
      • LogWarning(String, Object[])
    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