mirror of
https://gitee.com/dashuaibran/jyker
synced 2025-09-26 18:59:11 +08:00
31 lines
625 B
C#
31 lines
625 B
C#
#if NET5_0_OR_GREATER
|
||
using System;
|
||
#else
|
||
using UnityEngine;
|
||
#endif
|
||
|
||
|
||
|
||
namespace OpenBLive.Runtime.Utilities
|
||
{
|
||
public static class Logger
|
||
{
|
||
public static void LogError(string logInfo)
|
||
{
|
||
#if NET5_0_OR_GREATER
|
||
Console.WriteLine($"{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}:{logInfo}");
|
||
#else
|
||
Debug.LogError(logInfo);
|
||
#endif
|
||
}
|
||
|
||
public static void Log(string logInfo)
|
||
{
|
||
#if NET5_0_OR_GREATER
|
||
Console.WriteLine($"{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}:{logInfo}");
|
||
#else
|
||
Debug.Log(logInfo);
|
||
#endif
|
||
}
|
||
}
|
||
} |