Azure / Azure/azure-functions-dotnet-worker

REF Sample: customers want their log filters back

Open
#355 1 comment 0 reactions 1 assignee Claimed by @mattchenderson View on GitHub
area: documentation enhancement logging
Dominant language
C#
Stars
466
Forks
215
Avg merge
3d 10h
Merged PRs (30d)
7

Description

C# customers are used to having log filters in host.json applied to their code, but when running OOP the worker doesn't have the same filters: https://github.com/MicrosoftDocs/azure-docs/issues/72168

We need to have a reference sample that we can leverage in docs that shows how to load host.json using AddJsonFile() as suggested by @brettsam:

> since host.json is just a json file, you can use .AddJsonFile() in your ConfigureAppConfiguration setup and use that to setup logging directly in the Worker. I think you need to explicitly tell .NET where in the file the logging config is, ours is under the "logging" property.

We need to explicitly show this guidance to customers.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.