x) Change crlf to lf

This commit is contained in:
Marc Hernandez 2024-04-07 19:21:33 -07:00
parent d90eaf5954
commit cf519ce865

View File

@ -142,7 +142,14 @@ static public class log
*/ */
static public string relativePath( string fullPath )
{
var cwd = Directory.GetCurrentDirectory();
var rel = fullPath.Substring( cwd.Length );
return rel;
}
// Forwards. // Forwards.
static public void fatal( string msg, string cat = "", object obj = null, [CallerFilePath] string path = "", [CallerLineNumber] int line = -1, [CallerMemberName] string member = "" ) static public void fatal( string msg, string cat = "", object obj = null, [CallerFilePath] string path = "", [CallerLineNumber] int line = -1, [CallerMemberName] string member = "" )
@ -165,7 +172,8 @@ static public class log
logBase(msg, LogType.High, path, line, member, cat, obj); logBase(msg, LogType.High, path, line, member, cat, obj);
} }
static public void info( string msg, string cat = "", object obj = null, [CallerFilePath] string path = "", [CallerLineNumber] int line = -1, [CallerMemberName] string member = "" ) static public void info( string msg, string cat = "", object obj = null,
[CallerFilePath] string path = "", [CallerLineNumber] int line = -1, [CallerMemberName] string member = "" )
{ {
logBase( msg, LogType.Info, path, line, member, cat, obj ); logBase( msg, LogType.Info, path, line, member, cat, obj );
} }