From 13d86f73eb934af7922b922414696eab27710cad Mon Sep 17 00:00:00 2001 From: Marc Hernandez Date: Wed, 3 Jul 2024 03:08:03 -0700 Subject: [PATCH] Add record method for logging x) Added a new 'record' method to log debug information with name, path, and line number. --- logging/Log.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/logging/Log.cs b/logging/Log.cs index 9ff5db2..11e0215 100644 --- a/logging/Log.cs +++ b/logging/Log.cs @@ -294,6 +294,10 @@ static public class log static ImmutableDictionary s_files = ImmutableDictionary.Empty; #region Util + static public (string, string, int) record( [CallerMemberName] string dbgName = "", [CallerFilePath] string dbgPath = "", [CallerLineNumber] int dbgLine = -1 ) + => (dbgName, dbgPath, dbgLine); + + static public string whatFile( string path ) { var file = "";