Debug.Log
static function Log(message: object): void;
static void Log(object message);
static def Log(message as object) as void
Description

Logs message to the Unity Console.

	Debug.Log ("Hello");
using UnityEngine;
using System.Collections;

public class Example : MonoBehaviour {
    void Example() {
        Debug.Log("Hello");
    }
}
import UnityEngine
import System.Collections

public class Example(MonoBehaviour):

	def Example() as void:
		Debug.Log('Hello')

static function Log(message: object, context: Object): void;
static void Log(object message, Object context);
static def Log(message as object, context as Object) as void
Description

Logs message to the Unity Console.

When you select the message in the console a connection to the context object will be drawn. This is very useful if you want know on which object an error occurs.
	Debug.Log ("Hello", gameObject);
using UnityEngine;
using System.Collections;

public class Example : MonoBehaviour {
    void Example() {
        Debug.Log("Hello", gameObject);
    }
}
import UnityEngine
import System.Collections

public class Example(MonoBehaviour):

	def Example() as void:
		Debug.Log('Hello', gameObject)