Debug.Log Extensions
Documentation (1.1.9)

◆ Log() [7/21]

static void Debug.Log ( int  channel,
[CanBeNull] string  message,
Object  context = null 

Logs a message to the Console on the given channel .

Channels can be used to selectively suppress messages you don't care about at the moment.

void LogAudioEvent(string message)
Debug.Log(Channel.Audio, message, this);
Defines a channel for a message logged to the Console.
Definition: Channel.cs:12
static void Log([CanBeNull]object message)
Logs a message to the Console.
Definition: Debug.cs:168
Extended version of the built-in Debug class with additional methods to ease debugging while developi...
Definition: Debug.cs:34
channelThe channel to which the message belongs.
messageMessage to display.
contextObject to which the message applies.

If you pass a context argument that Object will be momentarily highlighted in the Hierarchy window when you click the log message in the Console.