Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💪 Enhance logger providers configurations with separate logger providers #242

Open
stijnmoreels opened this issue Dec 24, 2024 · 0 comments
Labels
area:logging All issues related to test logging. enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@stijnmoreels
Copy link
Member

Is your feature request related to a problem? Please describe.
Currently, each testing framework logging package reuses the same CustomLoggingProvider to register the logger. This means that when the logger gets registered with the LoggerFactory.Create(...), one has to refer to the logger as "Custom" in the appsettings.json, when you use configurable logging, specific for logger providers.

Describe the solution you'd like
Create a dedicated logger provider for each test framework so you can refer to the name of the test framework in the appsettings.json instead.

{
  ...
  "Logging": {
    "Xunit": {
      "LogLevel": "Information"
    }
  }
}

Additional context
https://learn.microsoft.com/en-us/dotnet/core/extensions/logging?tabs=command-line

@stijnmoreels stijnmoreels added enhancement New feature or request good first issue Good for newcomers area:logging All issues related to test logging. labels Dec 24, 2024
@stijnmoreels stijnmoreels added this to the v1.3 milestone Dec 24, 2024
@github-project-automation github-project-automation bot moved this to To do in Roadmap Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:logging All issues related to test logging. enhancement New feature or request good first issue Good for newcomers
Projects
Status: To do
Development

No branches or pull requests

1 participant