16 using System.Collections;
17 using System.Collections.Generic;
28 public string TAG =
"TFI";
45 private ILogger
logger = UnityEngine.Debug.unityLogger;
48 private string tag =
"Tilt Five, Inc.";
57 public static string TAG
75 Instance.logger.filterLogType = LogType.Log;
77 Instance.logger.filterLogType = LogType.Warning;
79 Instance.logger.filterLogType = LogType.Error;
81 Instance.logger.filterLogType = LogType.Log;
85 private const string DEBUG =
"DEBUG";
87 private const string ERROR =
"ERROR";
89 private const string INFO =
"INFO";
93 private const string WARN =
"WARN";
113 public static void Debug(
string m, params
object[] list)
127 public static void Error(
string m, params
object[] list)
140 public static void Info(
string m, params
object[] list)
144 log(LogType.Log,
INFO, m, list);
153 public static void Verbose(
string m, params
object[] list)
166 public static void Warn(
string m, params
object[] list)
170 log(LogType.Warning,
WARN, m, list);
181 private static void log(LogType logType,
string tag,
string m, params
object[] list)
183 Instance.logger.Log(logType,
tag,
string.Format(
"[{0}]\n{1}",
TAG,
string.Format(m, list)));
static void Debug(string m, params object[] list)
DEBUG logging function call.
int level
The logging level.
static void log(LogType logType, string tag, string m, params object[] list)
Universal log write function.
const string INFO
INFO logging level as a string.
static void Warn(string m, params object[] list)
WARN logging function call.
static void Verbose(string m, params object[] list)
VERBOSE logging function call.
static void Info(string m, params object[] list)
INFO logging function call.
const int DISABLED
DISABLED logging level as an int.
const int ERROR_LEVEL
ERROR logging level as an int.
const string WARN
WARN logging level as a string.
const string ERROR
ERROR logging level as a string.
const int INFO_LEVEL
INFO logging level as an int.
const string DEBUG
DEBUG logging level as a string.
ILogger logger
The logger instance.
static void Error(string m, params object[] list)
ERROR logging function call.
string tag
The logging tag.
const int WARN_LEVEL
WARN logging level as an int.
const int VERBOSE_LEVEL
VERBOSE logging level as an int.
static int LogLevel
Gets or sets the logging level.
const string VERBOSE
VERBOSE logging level as a string.
const int DEBUG_LEVEL
DEBUG logging level as an int.
static string TAG
Gets or sets the logging tag.