-1

I have UX people who have our code checked out and they run it locally under VisualStudio. When they hit an exception I'd like to be able to have them email me a log file that has the ILogger logging.

I've read a ton of pages, including this one, and can't anything that says how to have a file logging provider for Blazor server. How do I set this up?

My code at present is:

if (builder.Environment.IsDevelopment())
{
    builder.Logging.ClearProviders();
    builder.Logging.AddJsonConsole();
    builder.Logging.AddDebug();
}
David Thielen
  • 28,723
  • 34
  • 119
  • 193

0 Answers0