You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BookingHeChuan/Myshipping.Core/Logging/Component/ConsoleForamtComponent.cs

22 lines
562 B
C#

2 years ago
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Console;
using System;
namespace Myshipping.Core;
2 years ago
public sealed class ConsoleForamtComponent : IWebComponent
{
public void Load(WebApplicationBuilder builder, ComponentContext componentContext)
{
//builder.Logging.ClearProviders();
//builder.Logging.AddConsole(options =>
//{
// options.FormatterName = "custom_format";
//}).AddConsoleFormatter<ConsoleForamt, ConsoleFormatterOptions>();
}
}