-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net6添加组件, 访问主页异常 #88
Comments
还没有为 net 6适配,请等待下个版本 |
这和6没有关系吧,我5 也出这个。 |
好像是时间格式的问题, 看看日志配置 |
看日志确实是 格式问题,关键是配置的方法和log4的配置文件全部是copy的官方文档。 |
能不能上传一个示例到github我检查一下 |
项目文件太庞大了,暂时没有办法摘出来,问题应该出在 写入日志的时间格式上,不知道为啥不能被解析。 |
创建一个新项目复现。 |
这是日志文件,您可以用这个文件Debug一下 |
经过测试,发现LogDashboard 不支持毫秒级的日志解析,将日志输出时间改成{dd MMM yyyy HH:mm:ss}才可以。 |
应该是支持的,只是格式有问题。我看一下 |
#75 其实和这个是同样的问题 |
那为什么不更新一下文档,我复制官方配置文件也是这个问题,建议更新一下文档 |
OK。抽空我看看 |
现在有解决办法不 @realLiangshiwei |
`An unhandled exception occurred while processing the request.
FormatException: String '2022-01-21 15:33:55,013' was not recognized as a valid DateTime.
LogDashboard.Repository.File.FileUnitOfWork.ReadLogs(int id)
Stack Query Cookies Headers Routing
FormatException: String '2022-01-21 15:33:55,013' was not recognized as a valid DateTime.
LogDashboard.Repository.File.FileUnitOfWork.ReadLogs(int id)
LogDashboard.Repository.File.FileUnitOfWork.ReadAllLogs()
LogDashboard.Repository.File.FileUnitOfWork.Open()
LogDashboard.LogDashboardMiddleware.InvokeAsync(HttpContext httpContext)
Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.InvokeCore(HttpContext context, string matchedPath, string remainingPath)
Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)`
访问 http://localhost:5078/LogDashboard
The text was updated successfully, but these errors were encountered: