I have asp.net core application with log4net enabled and it is running fine in localhost after creating docker image then i tried to run it is throwing Microsoft.AspNetCore.Hosting.Diagnostics Application startup exception System.IO.FileNotFoundException: Could not find file ‘/app/log4net.config’. File name: ‘/app/log4net.config’ at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func2 errorRewriter) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 ..
I run a litle .Net core web app in a Docker container. A log file is written by log4net. Everything works fine. But when I run the container with –read-only, I get the following error, although the directory for the log file is mounted and writeable. log4net:ERROR Could not create Appender [SyncAppAppender] of type [log4net.Appender.RollingFileAppender]. ..
I have dotnetcore service which is running in Kubernetes. For logging, I have used the log4net. I am trying to send the logs of service to application-insights but the logs are not showing there. I have added the below configuration in my service for application insights. Runtime version: netcoreapp3.1 version-184.108.40.206 Hosting environment: Azure-cluster app-service.csproj <ItemGroup> ..