logging - 我可以在不使用第三方记录器的情况下使用 microsoft 扩展在 asp.net 核心中登录的文件系统中记录数据吗
问题描述
我是新来的日志记录。我可以在不使用第三方记录器的情况下使用 Microsoft 扩展在 asp.net 核心中登录的文件系统中记录数据吗?
解决方案
No.
The built-in logging providers that come with asp.net core do not provide the ability to log to the filesystem. ASP.NET Core Built-in logging providers
To log to the file system you will need to use one of the third party logging providers such as SeriLog, List of Third Party logging providers
推荐阅读
- java - 将 XML 字符串转换为 Java 对象 Jackson / JAXB
- java - 未找到测试 - 在准系统 Spring Boot Maven 项目上运行 jUnit 5 测试用例时出现空测试套件
- html - Firebase Cookie 限制
- linux - 不能使用 suid 二进制文件删除权限?
- html - 在不添加和删除标签的情况下解析 HTML
- linux - 在 Windows 机器上签出时为某些文件保留 unix 行尾 (LF)
- java - 我无法将数据传递到我的回收站视图
- r - echarts4r:用极坐标生成条形图
- linkedin - UGC 将 LinkedIn 上的视频发布到个人页面
- html - 如何围绕文本创建多个 div