Files
ClubPenguinClient/MareSynchronos/Utils/Logger.cs
2022-06-26 02:34:24 +02:00

21 lines
568 B
C#

using System.Diagnostics;
using Dalamud.Logging;
namespace MareSynchronos.Utils
{
internal class Logger
{
public static void Debug(string debug)
{
var caller = new StackTrace().GetFrame(1)?.GetMethod()?.ReflectedType?.Name ?? "Unknown";
PluginLog.Debug($"[{caller}] {debug}");
}
public static void Warn(string warn)
{
var caller = new StackTrace().GetFrame(1)?.GetMethod()?.ReflectedType?.Name ?? "Unknown";
PluginLog.Warning($"[{caller}] {warn}");
}
}
}