12345678910111213141516171819202122232425262728 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using ConfigReader;
- namespace Logger
- {
- public enum LogLevel { DEBUG, INFO, WARNING, ERROR}
- public static class CityLogger
- {
- private static LogLevel LogLevel = LogLevel.DEBUG;
- public static void Log(string s, LogLevel level)
- {
- if (level >= LogLevel)
- Debug.Log(s);
- }
- public static void LogWarning(string s)
- {
- if (LogLevel >= LogLevel.WARNING)
- Debug.LogWarning(s);
- }
- public static void LogError(string s)
- {
- if (LogLevel >= LogLevel.ERROR)
- Debug.LogWarning(s);
- }
- }
- }
|