realLiangshiwei/LogDashboard

日志文件放在部署站点目录之外,无法读取到日志

mcjing opened this issue · 1 comments

比如我的站点的位置是 D:/NET_CORE ,日志文件记录在D:/LOG
如果是上述的这种情况,LogDashboard页面无法显示日志文件的内容

context.Services.AddLogDashboard(opt => opt.SetRootPath(your log path));

public static void SetRootPath(this LogDashboardOptions options,string rootPath)