Category : log4net

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[6] 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 ..

Read more

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-2.31.0.1 Hosting environment: Azure-cluster app-service.csproj <ItemGroup> ..

Read more