Class BuildLogger
Logging overrides for SBP build logs.
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. |