Version: 2017.2

LoggerConstructor

Switch to Manual
public Logger (ILogHandler logHandler);

Parameters

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