Version: 2019.1

LoggerConstructor

Switch to Manual
public Logger (ILogHandler logHandler);

Parameters

logHandlerPass in default log handler or custom log handler.

Description

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."); } }