分离 Logger 初始化

This commit is contained in:
龙腾猫跃 committed 2026-06-18 22:11:31 +08:00
1 parent 966b2db312
commit d1389396dc
2 files changed
+3 -3

No files matched your search

+1 -2
View File
@@ -2,10 +2,9 @@
public static class Main {
public static string AppName = "Meloong";
public static void Init(string appName, BaseLogger? logger = null) {
public static void Init(string appName) {
AppName = appName;
AppDomain.CurrentDomain.SetData("REGEX_DEFAULT_MATCH_TIMEOUT", TimeSpan.FromSeconds(5));
if (logger != null) Logger.Instance = logger;
}
}