Version: 5.5

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.logger.logHandler);

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