fajiao
2 years ago
5 changed files with 324 additions and 306 deletions
@ -1 +1,13 @@ |
|||
Serve.Run(RunOptions.Default.WithArgs(args)); |
|||
Serve.Run(RunOptions.Default.AddWebComponent<WebComponent>().WithArgs(args)); |
|||
|
|||
public class WebComponent : IWebComponent |
|||
{ |
|||
public void Load(WebApplicationBuilder builder, ComponentContext componentContext) |
|||
{ |
|||
// ÈÕÖ¾¹ýÂË
|
|||
builder.Logging.AddFilter((provider, category, logLevel) => |
|||
{ |
|||
return !new[] { "Microsoft.Hosting", "Microsoft.AspNetCore" }.Any(u => category.StartsWith(u)) && logLevel >= LogLevel.Information; |
|||
}); |
|||
} |
|||
} |
Loading…
Reference in new issue