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:
parent
be02b6f91f
commit
13d86f73eb
@ -294,6 +294,10 @@ static public class log
|
|||||||
static ImmutableDictionary<int, string> s_files = ImmutableDictionary<int, string>.Empty;
|
static ImmutableDictionary<int, string> s_files = ImmutableDictionary<int, string>.Empty;
|
||||||
|
|
||||||
#region Util
|
#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 )
|
static public string whatFile( string path )
|
||||||
{
|
{
|
||||||
var file = "";
|
var file = "";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user