Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究一个在 .Net Standard 中创建的 dll,供 .net core 和 .net framework 应用程序使用。
要求之一是在 dll 中进行日志记录,通过使用 microsoft.extensions.logging 中的 ILogger 接口,可以很容易地为 .net 核心应用程序实现它。
有什么方法可以将 .net 框架中 NLog 的 ILogger 实现转换为 microsoft.extensions.logging 中的 ILogger?