Print debug.log to screen? C#

hi all!

How can i print console debug log to the screen?

This is what i have so far but i don’t know how to save the debug log to a variable, any ideas? I’m using C#

using UnityEngine;
using System.Collections;

public class NewBehaviourScript : MonoBehaviour {
private string theDebugLog = "the log file here? How do i do that?";
	// Use this for initialization
	void Start () {

	}
	
	// Update is called once per frame
	void Update () {
	
	}
		void OnGUI () {
		GUI.Label (new Rect (0,0,100,50), theDebugLog);
	}

}

using UnityEngine;
using System.Collections;

public class MyLog : MonoBehaviour
{
	string myLog;
	Queue myLogQueue = new Queue();

	void Start(){
		Debug.Log("Log1");
		Debug.Log("Log2");
		Debug.Log("Log3");
		Debug.Log("Log4");
	}

	void OnEnable () {
		Application.logMessageReceived += HandleLog;
	}
	
	void OnDisable () {
		Application.logMessageReceived -= HandleLog;
	}

	void HandleLog(string logString, string stackTrace, LogType type){
		myLog = logString;
		string newString = "

[" + type + "] : " + myLog;
myLogQueue.Enqueue(newString);
if (type == LogType.Exception)
{
newString = "
" + stackTrace;
myLogQueue.Enqueue(newString);
}
myLog = string.Empty;
foreach(string mylog in myLogQueue){
myLog += mylog;
}
}

	void OnGUI () {
		GUILayout.Label(myLog);
	}
}

You can use the Application.logMessageReceived event to grab Debug.Log messages.