In My .net core 6 console app I create a host builder This gives me a HostBuilder instance with a logging factory set up for console, debug, event ...
In My .net core 6 console app I create a host builder This gives me a HostBuilder instance with a logging factory set up for console, debug, event ...
I have a logging section in json settings: I need to register it in Startup so to be able to use in handlers. So far I have tried various options ...
I have a simple console app with the following code, to log into Splunk which is not working. I dont see any logs in the Splunk dashboard. I have mask ...
I'm creating a new app in .Net Core 3.1. I have the database created, and now I'm working on the business logic, which is in a collection of services ...
How can I implement ILogger dependency injection (like a hosted app) in a non-hosted Console app? In the code below, I'd like to work like logTest1. I ...
I am using a LoggerFactory for logging my EF Core (3.1.2) DataContext: How do I need to modify my code to deactivate or modify the LogLevel the log ...
I have a .NET Core 3.0 console application. I have a Microsoft.Extensions.Logging logger and I'm building Microsoft.Extensions.Configuration using a c ...
I am trying to Log errors and information for each service using .net core. How can i use separate files for logging. Currently i am using one file f ...
I try to add a logger to my console app. All configuration apply correctly, except Logging Program.cs: In App.Run() I try log debug and info messa ...
I am trying to register a generic ILogger (from Microsoft.Extensions.Logging, not from Serilog) in Unity (version 4). I've got the following class: ...
Are upgrading from ASP.NET Core 2.1 to ASP.NET Core 2.2 and following the official documentation guide. Got a problem with writing the new logging co ...
I have typical logging requirement for my asp.net core 2.x app: use application insight in production, console and debug logger in development ...
I have ASP.NET Core application. I am using Microsoft.Extensions.Logging.ILogger interface with Serilog logging provider. In production environment, t ...
so as per the MS documentation we can add EvventLog as one of the logging provider. However when i add Microsoft.Extensions.Logging.EventLog package i ...
I have the following MailService: I would like to create this service using an implementation factory because I will read the smtp settings from co ...
I am using ASP.NET Core logging abstraction for my application. I have a list of sensitive strings that i would like to make sure is masked "*****" i ...
Suppose a scenario like this: In this scenario, the LogInformation call will trigger a string.Format call, and even worse, the LogTrace line will t ...
I cannot get basice LogTrace(...) output in my application. Here's a repro: Create a new ASP.NET Core application using Visual Studio 2017. (Opt ...