diff --git a/framework/src/Volo.Abp.BlazoriseUI/BlazoriseUiNotificationService.cs b/framework/src/Volo.Abp.BlazoriseUI/BlazoriseUiNotificationService.cs index d1e6ed6ce2..be2d5c9d51 100644 --- a/framework/src/Volo.Abp.BlazoriseUI/BlazoriseUiNotificationService.cs +++ b/framework/src/Volo.Abp.BlazoriseUI/BlazoriseUiNotificationService.cs @@ -2,8 +2,6 @@ using System.Threading.Tasks; using Localization.Resources.AbpUi; using Microsoft.Extensions.Localization; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Logging.Abstractions; using Volo.Abp.AspNetCore.Components.WebAssembly; using Volo.Abp.DependencyInjection; @@ -19,14 +17,10 @@ namespace Volo.Abp.BlazoriseUI private readonly IStringLocalizer localizer; - public ILogger Logger { get; set; } - public BlazoriseUiNotificationService( IStringLocalizer localizer) { this.localizer = localizer; - - Logger = NullLogger.Instance; } public Task Info(string message, string title = null, Action options = null) @@ -34,8 +28,6 @@ namespace Volo.Abp.BlazoriseUI var uiNotificationOptions = CreateDefaultOptions(); options?.Invoke(uiNotificationOptions); - Logger.LogInformation(message); - NotificationReceived?.Invoke(this, new UiNotificationEventArgs(UiNotificationType.Info, message, title, uiNotificationOptions)); return Task.CompletedTask; @@ -46,8 +38,6 @@ namespace Volo.Abp.BlazoriseUI var uiNotificationOptions = CreateDefaultOptions(); options?.Invoke(uiNotificationOptions); - Logger.LogInformation(message); - NotificationReceived?.Invoke(this, new UiNotificationEventArgs(UiNotificationType.Success, message, title, uiNotificationOptions)); return Task.CompletedTask; @@ -58,8 +48,6 @@ namespace Volo.Abp.BlazoriseUI var uiNotificationOptions = CreateDefaultOptions(); options?.Invoke(uiNotificationOptions); - Logger.LogWarning(message); - NotificationReceived?.Invoke(this, new UiNotificationEventArgs(UiNotificationType.Warning, message, title, uiNotificationOptions)); return Task.CompletedTask; @@ -70,8 +58,6 @@ namespace Volo.Abp.BlazoriseUI var uiNotificationOptions = CreateDefaultOptions(); options?.Invoke(uiNotificationOptions); - Logger.LogError(message); - NotificationReceived?.Invoke(this, new UiNotificationEventArgs(UiNotificationType.Error, message, title, uiNotificationOptions)); return Task.CompletedTask;