You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
using Microsoft.Extensions.Logging.Console;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace GDZZ.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>();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|