Add record method for logging

x) Added a new 'record' method to log debug information with name, path, and line number.
This commit is contained in:
Marc Hernandez 2024-07-03 03:08:03 -07:00
parent be02b6f91f
commit 13d86f73eb

View File

@ -294,6 +294,10 @@ static public class log
static ImmutableDictionary<int, string> s_files = ImmutableDictionary<int, string>.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 = "";