x) Change crlf to lf
This commit is contained in:
parent
d90eaf5954
commit
cf519ce865
@ -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 );
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user