我创建了一个 CrudAppService。当我使用 swagger 调用它的动态 API 时,我得到一个通用的 500
此描述错误:
{
"result": null,
"targetUrl": null,
"success": false,
"error": {
"code": 0,
"message": "An internal error occurred during your request!",
"details": null,
"validationErrors": null
},
"unAuthorizedRequest": false,
"__abp": true
}
如何获得更详细的调试异常?有什么我必须启用的吗?
最佳答案
检查 中的错误日志.txt .
来自 Logging 上的文档:
Configuration
All configuration is done for Log4Net when you create your application from ASP.NET Boilerplate templates.
...
It's defined in the log4net.config file of the application as shown below:
<?xml version="1.0" encoding="utf-8" ?> <log4net> <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender" > <file value="Logs/Logs.txt" />
关于asp.net-core - 如何在 ABP 中获得更详细的异常?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48050689/