public static void Log(LogType type, string message) { if (mInstance == null) { mInstance = new TLogger(); } switch (type) { case LogType.Error: mInstance.LogError(message); break; case LogType.Assert: break; case LogType.Warning: mInstance.LogWarning(message); break; case LogType.Log: mInstance.Log(message); break; case LogType.Exception: break; } }
public static void Log(LogType type, Exception exception) { if (mInstance == null) { mInstance = new TLogger(); } switch (type) { case LogType.Error: case LogType.Assert: case LogType.Warning: case LogType.Log: break; case LogType.Exception: mInstance.LogException(exception); break; } }