Version: 2017.3

Debug.unityLogger

Switch to Manual
public static ILogger unityLogger ;

Description

Get default debug logger.

Записывает сообщение в Консоль Unity.

See Also: ILogger, ILogHandler.

using UnityEngine;
using System.Collections;

public class MyGameClass : MonoBehaviour { private static ILogger logger = Debug.unityLogger; private static string kTAG = "MyGameTag";

void MyGameMethod() { logger.Log(kTAG, "Hello");

Debug.unityLogger.Log(kTAG, "World"); } }