Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Nov 14, 2024
1 parent 5bce2ce commit cc5ea17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,15 @@ public static ILoggingBuilder AddDiagnosticLogger(this ILoggingBuilder builder)

public static ILoggingBuilder ConfigureLoggers(this ILoggingBuilder loggingBuilder)
{
loggingBuilder.ClearProviders();

if (AppEnvironment.IsDev())
{
loggingBuilder.AddDebug();
}

if (!AppPlatform.IsBrowser)
{
// Browser has its own BrowserConsoleLogger.
loggingBuilder.AddConsole();
// DiagnosticLogger is already logging in browser's console.
// But Console logger is still useful in Visual Studio's Device Log (Android, iOS) or BrowserStack etc.
}

loggingBuilder.AddDiagnosticLogger();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ public static void AddClientWindowsProjectServices(this IServiceCollection servi
loggingBuilder.AddConfiguration(configuration.GetSection("Logging"));
loggingBuilder.AddEventSourceLogger();

if (AppPlatform.IsWindows)
{
loggingBuilder.AddEventLog();
}
loggingBuilder.AddEventLog();
//#if (appCenter == true)
if (Microsoft.AppCenter.AppCenter.Configured)
{
Expand Down

0 comments on commit cc5ea17

Please sign in to comment.