Version: 5.5
public static ILogger logger ;

Description

Get default debug logger.

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

See Also: ILogger, ILogHandler.

using UnityEngine;
using System.Collections;

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

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

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