﻿using UnityEngine;
using GLogUnity;

public class LogTest : MonoBehaviour
{
    public float updateTime = 2.0f;
    float currTime;

	// Use this for initialization
	void Start () {
        currTime = updateTime;
        GLog.StartSession();
	}

    void TriggerLog() {
		GLog.Log(VerboseLevel.DEBUG, "tag1", "tag2", "data");
		GLog.Log(VerboseLevel.INFO, "data");
        GLog.Debug("tag1", "tag2", "tag3", "data");
        GLog.Info("data");
        GLog.Performance("data");
        GLog.Subsystem("data");
        GLog.Warning("data");
        GLog.Info("data");
        GLog.Error("data");
        GLog.Player("data");
        GLog.Event("data");
    }

    // Update is called once per frame
    void Update () {
        currTime -= Time.deltaTime;
        if (currTime < 0) {
            currTime += updateTime;
            TriggerLog();
        }
	}
}
