major refactoring, maybe some bugfixes, idk
This commit is contained in:
14
MareSynchronos/Utils/Logger.cs
Normal file
14
MareSynchronos/Utils/Logger.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user