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

LoggingConfigurationParser - Support for using assembly-name as type-alias-prefix #4979

Closed
wants to merge 1 commit into from

Conversation

snakefoot
Copy link
Contributor

@snakefoot snakefoot commented Jun 18, 2022

Trying to resolve #4978, so one can do this (Assembly-name in QName-prefix):

<target xsi:type="NLog.Targets.Syslog:Syslog" name="cee-udp">

See also: https://en.wikipedia.org/wiki/QName

Not happy about having multiple ways of specifying assembly-name in the type-alias, but also not happy about breaking xml-schema-validation on purpose (Though NLog-config-variables also doesn't work that well with xml-schema-validation. Ex. minLevel="${var:defaultLevel}").

Before NLog always ignored/stripped any prefix in type-name, but with this change then NLog will include the prefix when loading types. And will try to load assembly-name matching the prefix. Maybe this is for NLog 5.1 ? (Not sure of the original purpose of the prefix, and why it was ignored/skipped)

@sonarcloud
Copy link

sonarcloud bot commented Jun 19, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

95.5% 95.5% Coverage
0.0% 0.0% Duplication

@snakefoot snakefoot closed this Jun 23, 2022
@snakefoot snakefoot removed this from the 5.0.2 milestone Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assembly suffix not supported by xsi:type and NLog.xsd
1 participant