|
|
@@ -19,7 +19,9 @@ namespace ET
|
|
|
Parser.Default.ParseArguments<Options>(System.Environment.GetCommandLineArgs())
|
|
|
.WithNotParsed(error => throw new Exception($"命令行格式错误! {error}"))
|
|
|
.WithParsed((o)=>World.Instance.AddSingleton(o));
|
|
|
- World.Instance.AddSingleton<Logger>().Log = new NLogger(Options.Instance.AppType.ToString(), Options.Instance.Process, 0, "../Config/NLog/NLog.config");
|
|
|
+
|
|
|
+ World.Instance.AddSingleton<Logger>().Log = new NLogger(Options.Instance.AppType.ToString(), Options.Instance.Process, 0);
|
|
|
+
|
|
|
ETTask.ExceptionHandler += Log.Error;
|
|
|
World.Instance.AddSingleton<TimeInfo>();
|
|
|
World.Instance.AddSingleton<FiberManager>();
|