LoggerConstructor

매뉴얼로 전환
public Logger (ILogHandler logHandler);

파라미터

logHandlerPass in default log handler or custom log handler.

설명

Create a custom Logger.

using UnityEngine;
using System.Collections;

public class MyGameClass : MonoBehaviour { private static string kTAG = "MyGameTag"; private Logger myLogger;

void Start() { myLogger = new Logger(Debug.unityLogger.logHandler);

myLogger.Log(kTAG, "MyGameClass Start."); } }