Add documentation on how to add logging to a service provider
- Dominant language
- TypeScript
- Stars
- 111
- Forks
- 109
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 20
Description
### Priority
P2 - High (Would significantly improve my workflow)
### Feature Area
Operation/Action Configuration
### Problem Statement
I am trying to write a service provider for Logic apps. It would greatly help troubleshooting if it was possible to do logging.
How do I add logging to the service provider?
If it is not possible, then please make it possible.
### Proposed Solution
I would like to see at least one sample running on .NET 8 which uses logging.
It may be sufficient with the sample, otherwise some documentation for this would be useful
### Alternatives Considered
I have tried adding the following code for the startup class:
```csharp
public class HttpCallerStartup : IWebJobsStartup
{
public void Configure(IWebJobsBuilder builder)
{
builder.AddExtension();
builder.Services.AddLogging();
builder.Services.TryAddSingleton(provider => provider.GetRequiredService().CreateLogger());
builder.Services.TryAddSingleton();
}
}
```
but get this error:
`[2026-02-04T14:04:33.992Z] A host error has occurred during startup operation '9bc7de7a-ad99-4503-b1a6-5963cb1eadc1'.
[2026-02-04T14:04:34.000Z] Microsoft.Azure.Workflows.WebJobs.Extensions: Method not found: 'Void Microsoft.Extensions.Logging.LoggerFilterRule..ctor(System.String, System.String, System.Nullable`1, System.Func`4)'.`
### Which Logic App type(s) should this apply to?
Standard
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the HttpCallerStartup.Configure example in the issue and investigate the LoggerFilterRule startup error for a Standard Logic App service provider on .NET 8. Done means the repository contains a working logging sample or documentation that explains the supported setup and avoids the reported startup failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100