2022-02-06 02:06:25 +00:00
|
|
|
|
using Epic.OnlineServices.Logging;
|
|
|
|
|
using System;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
namespace EpicTransport;
|
|
|
|
|
|
|
|
|
|
public static class Logger
|
2022-02-06 04:17:08 +00:00
|
|
|
|
{
|
2022-03-03 03:46:33 +00:00
|
|
|
|
public static void EpicDebugLog(LogMessage message)
|
2022-02-06 04:17:08 +00:00
|
|
|
|
{
|
2022-03-03 03:46:33 +00:00
|
|
|
|
switch (message.Level)
|
2022-02-06 04:17:08 +00:00
|
|
|
|
{
|
2022-03-03 03:46:33 +00:00
|
|
|
|
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-06 04:17:08 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-02-25 06:04:54 +00:00
|
|
|
|
}
|