Debug.Log Extensions
Documentation (1.1.9)

◆ LogError() [8/16]

static void Debug.LogError ( string  prefix,
object  arg,
params object[]  args 
)
static

Logs an error to the Console starting with prefix and followed by a list of elements separated by a separator character.

Comma will be used for the separator character with short messages and line break with longer messages.

public void TestLogError123()
{
Debug.LogError("Test: ", 1, 2, 3);
}
static void LogError([CanBeNull]string message)
Logs an error message to the Console.
Definition: Debug.cs:2527
Extended version of the built-in Debug class with additional methods to ease debugging while developi...
Definition: Debug.cs:34
Parameters
prefixPrefix text for the message.
argFirst listed element after the prefix.
args(Optional) Additional listed elements after the prefix.