2022-02-05 18:06:25 -08:00
|
|
|
|
using Epic.OnlineServices.Logging;
|
|
|
|
|
using System;
|
2023-04-26 15:23:14 -07:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
2022-02-05 18:06:25 -08:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
2023-04-26 15:23:14 -07:00
|
|
|
|
namespace EpicTransport {
|
|
|
|
|
public static class Logger {
|
2022-03-02 19:46:33 -08:00
|
|
|
|
|
2023-04-26 15:23:14 -07:00
|
|
|
|
public static void EpicDebugLog(LogMessage message) {
|
|
|
|
|
switch (message.Level) {
|
|
|
|
|
case LogLevel.Info:
|
|
|
|
|
Debug.Log($"Epic Manager: Category - {message.Category} Message - {message.Message}");
|
|
|
|
|
break;
|
|
|
|
|
case LogLevel.Error:
|
|
|
|
|
Debug.LogError($"Epic Manager: Category - {message.Category} Message - {message.Message}");
|
|
|
|
|
break;
|
|
|
|
|
case LogLevel.Warning:
|
|
|
|
|
Debug.LogWarning($"Epic Manager: Category - {message.Category} Message - {message.Message}");
|
|
|
|
|
break;
|
|
|
|
|
case LogLevel.Fatal:
|
|
|
|
|
Debug.LogException(new Exception($"Epic Manager: Category - {message.Category} Message - {message.Message}"));
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
Debug.Log($"Epic Manager: Unknown log processing. Category - {message.Category} Message - {message.Message}");
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-02-24 22:04:54 -08:00
|
|
|
|
}
|