我将 asp.net 核心应用程序安装为 linux 守护进程。默认情况下 dotnet 将日志写入/var/log/message. 但我希望应用程序将其日志写入特定文件并永久存储。我该怎么做?应用程序使用Microsoft.Extensions.Logging。
我想使用 NLog 以类似于 WebApi Core 的方式记录来自 Entity Framework Core 的 SQL 查询。我该如何设置?
nlog entity-framework-core .net-core entity-framework-core-2.1
我按照说明安装了.NET Core 2.1.4:https://docs.microsoft.com/ru-ru/dotnet/core/linux-prerequisites? tabs = netcore2x #install-net-core-for-centos-71-64 位-甲骨文Linux的71-64位
接下来我跑了dotnet --version,它显示:
无法解析库符号hostfxr_main_startupinfo,错误:/usr/share/dotnet/host/fxr/2.0.5/libhostfxr.so:undefined symbol:hostfxr_main_startupinfo 2.1.4
为什么会这样?