Skip to content

Commit edb186f

Browse files
committed
fix: 修复日志标签设置问题并添加日志类型配置
移除重复设置的LogTagName,改为统一使用LogType配置服务器类型日志
1 parent 693d176 commit edb186f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

GameFrameX.StartUp/GameApp.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ public static async Task Entry(string[] args, Action initAction, Action<LogOptio
124124
{
125125
LogHelper.Info($"the type of server that is launched : {serverType}");
126126
}
127-
128-
LogOptions.Default.LogTagName = serverType;
127+
129128
LogOptions.Default.GrafanaLokiLabels = new Dictionary<string, string>();
130129

131130
if (launcherOptions != null)
@@ -200,6 +199,7 @@ public static async Task Entry(string[] args, Action initAction, Action<LogOptio
200199
}
201200

202201
logConfiguration?.Invoke(LogOptions.Default);
202+
LogOptions.Default.LogType = serverType;
203203
LogHandler.Create(LogOptions.Default);
204204

205205
GlobalSettings.Load("Configs/app_config.json");

0 commit comments

Comments
 (0)