Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
232 views
in Technique[技术] by (71.8m points)

api - Adding filters to .NET Core logging after initial Configuration

In Program.cs of .NET Core 3.1 we use ConfigureApiLogging to AddFilters()...

What I'm wondering is if there is a pattern to later get at that configuration to add additional filters? Some things we add dynamically depending upon the microservice and as those new services are added we'd like to have filters automatically included in our logging.

So: Is there any way to add additional filters to .NET Core logging after initial configuration?

question from:https://stackoverflow.com/questions/65937516/adding-filters-to-net-core-logging-after-initial-configuration

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...