This commit is contained in:
Somebody
2024-09-14 17:07:03 +08:00
parent 52b360b0bb
commit 7b5d404906
2 changed files with 3 additions and 3 deletions

View File

@@ -80,6 +80,8 @@ public class WordTextCHS
public string RogueChestMapInfo => "模拟宇宙地图文件";
public string ChessRogueRoom => "模拟宇宙DLC";
public string ChessRogueRoomInfo => "模拟宇宙DLC文件";
public string SummonUnit => "秘技生成";
public string SummonUnitInfo => "秘技生成文件";
public string DatabaseAccount => "数据库账号";
}

View File

@@ -90,12 +90,10 @@ public class Logger(string moduleName)
}
}
#pragma warning disable CS8602
public static Logger GetByClassName()
{
return new Logger(new StackTrace().GetFrame(1).GetMethod().ReflectedType.Name);
return new Logger(new StackTrace().GetFrame(1)?.GetMethod()?.ReflectedType?.Name ?? "");
}
#pragma warning restore CS8602
}
public enum LoggerLevel