Skip to content

Commit dc4a007

Browse files
committed
[修改]1. 修改日志目录不存在的问题
1 parent 11c5c69 commit dc4a007

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

GameFrameX.Utility/Log/LoggerHandler.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ public static void Start(LogOptions logOptions)
1919
{
2020
// 日志文件存储的路径
2121
var logPath = "./logs/";
22+
if (!Directory.Exists(logPath))
23+
{
24+
Directory.CreateDirectory(logPath);
25+
}
26+
2227
var logFileName = $"{logOptions.ServerType ?? "Server"}_log_.log";
2328
if (logOptions.LogSavePath != null)
2429
{

0 commit comments

Comments
 (0)