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

#519 Match type namespace prefix as well when building LogLevels #520

Merged
merged 2 commits into from
Oct 24, 2019
Merged

#519 Match type namespace prefix as well when building LogLevels #520

merged 2 commits into from
Oct 24, 2019

Conversation

wdolek
Copy link
Contributor

@wdolek wdolek commented Sep 2, 2019

Related to #519

Description of changes:
Adding support of namespace prefixes as well, alongside of wildcard support. Namespace prefixing is common in .NET, see issue.

With this change, log levels can be configured like this:

    "LogLevel": {
      "Default": "Debug",
      "Microsoft": "Information",
      "System": "Warning",
      "System.Net": "Information",
      "System.Net.Http": "Debug"
    }

Wildcards are still supported, in fact, namespace prefix uses very same data structure to match category. (technically wildcard "*" is just removed and behavior is the same for both ways)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@normj
Copy link
Member

normj commented Oct 25, 2019

Version 3.0.0 of Amazon.Lambda.Logging.AspNetCore has been released with the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants