分离 Logger 初始化
This commit is contained in:
1 parent
966b2db312
commit
d1389396dc
2 files changed
+3
-3
No files matched your search
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user