21 lines
		
	
	
		
			568 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			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}");
 | |
|         }
 | |
|     }
 | |
| }
 | 
