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.
22 lines
562 B
C#
22 lines
562 B
C#
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.Extensions.Logging;
|
|
using Microsoft.Extensions.Logging.Console;
|
|
using System;
|
|
|
|
namespace Myshipping.Core;
|
|
|
|
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>();
|
|
|
|
}
|
|
|
|
|
|
}
|