We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
日志文件如下
2021-06-17 01:12:53,149 || INFO || Microsoft.Hosting.Lifetime || Application started. Press Ctrl+C to shut down. || ||end 2021-06-17 01:12:53,240 || INFO || Microsoft.Hosting.Lifetime || Application started. Press Ctrl+C to shut down. || ||end 2021-06-17 01:12:53,253 || INFO || Microsoft.Hosting.Lifetime || Hosting environment: Development || ||end 2021-06-17 01:12:53,253 || INFO || Microsoft.Hosting.Lifetime || Hosting environment: Development || ||end 2021-06-17 01:12:53,256 || INFO || Microsoft.Hosting.Lifetime || Content root path: D:\Code\dotnet\AmzErp\src\dotnet\AmzErp\AmzErp.Web || ||end 2021-06-17 01:12:53,257 || INFO || Microsoft.Hosting.Lifetime || Content root path: D:\Code\dotnet\AmzErp\src\dotnet\AmzErp\AmzErp.Web || ||end 2021-06-17 01:12:53,308 || DEBUG || AmzErp.Common.Mvc.Filters.RequestLoggerFilter || GET /user/test || ||end 2021-06-17 01:12:53,313 || DEBUG || AmzErp.Common.Mvc.Filters.RequestLoggerFilter || GET /user/test || ||end
官方示例log4net配置 <conversionPattern value="%date || %5level || %logger || %message || %exception ||end %newline" /> 修改后正常运行的log4net配置 <conversionPattern value="%date{yyyy-MM-dd HH:mm:ss} || %5level || %logger || %message || %exception ||end %newline" />
<conversionPattern value="%date || %5level || %logger || %message || %exception ||end %newline" />
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss} || %5level || %logger || %message || %exception ||end %newline" />
The text was updated successfully, but these errors were encountered:
建议:在显示日志全文时,把日志内容放入<pre>节点内
<pre>
Sorry, something went wrong.
谢谢你的建议,重构时我会考虑
No branches or pull requests
日志文件如下
官方示例log4net配置
<conversionPattern value="%date || %5level || %logger || %message || %exception ||end %newline" />
修改后正常运行的log4net配置
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss} || %5level || %logger || %message || %exception ||end %newline" />
The text was updated successfully, but these errors were encountered: