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

feat(logging.xunit): add provider alias to xunit logger provider #320

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stijnmoreels
Copy link
Member

With multiple logger providers, it is sometimes the case that you want to filter certain logs based on category with specific log levels. To do this for custom logger providers, you can set the [ProviderAlias(...)] attribute.

This PR sets this attribute to the custom logger provider of the xUnit logging package.
This would allow stuff like:

{
  "Logging": {
    "LogLevel": {
      "Default": "Information"
    },
    "Xunit": {
      "LogLevel": {
        "Default": "Trace"
      }
    }
  }
}

Relates to #242

@stijnmoreels stijnmoreels added the area:logging All issues related to test logging. label Mar 4, 2025
@stijnmoreels stijnmoreels requested a review from a team as a code owner March 4, 2025 07:38
Copy link

netlify bot commented Mar 4, 2025

Deploy Preview for arcus-testing canceled.

Name Link
🔨 Latest commit 8c066e8
🔍 Latest deploy log https://app.netlify.com/sites/arcus-testing/deploys/67c6ae14b062a800089d9160

@arcus-automation
Copy link
Collaborator

🧪 Code coverage summary

Metric Value
Line coverage 🟢 91.9%
Branch coverage 🟢 81.3%

Great job! 😎 Your code coverage is higher than my caffeine levels! ☕

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants