路径检查
This commit is contained in:
1 parent
4f1664459d
commit
f760befa26
7 files changed
+108
-11
No files matched your search
@@ -221,7 +221,7 @@ public class BaseLogger {
|
||||
.Join("\r\n");
|
||||
}
|
||||
public static string GetLogPrefix(LogLevel level, string filePath)
|
||||
=> $"{DateTime.Now:HH':'mm':'ss'.'fff} {level.ToString().First()} {(Thread.CurrentThread.Name is null ? "" : $"<{Thread.CurrentThread.Name}> ")}[{Path.GetFileName(filePath).BeforeFirst(".")}] ";
|
||||
=> $"{DateTime.Now:HH':'mm':'ss'.'fff} {level.ToString().First()} {(Thread.CurrentThread.Name is null ? "" : $"<{Thread.CurrentThread.Name}> ")}[{PathUtils.GetLastPart(filePath).BeforeFirst(".")}] ";
|
||||
|
||||
/// <summary>
|
||||
/// 输出格式化后的日志文本。
|
||||
|
||||
Reference in new issue
Block a user