-
Notifications
You must be signed in to change notification settings - Fork 151
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
Autoloading of NLog Extensions Question #291
Comments
After digging around I discovered that it actually works in 1.5.0! {
"NLog": {
"ThrowConfigExceptions": true,
"Extensions": [
{
"Assembly": "NLog.Extensions.AzureStorage"
}
],
// ...
} |
nlog.config convert to json config. extensions is not work. {
"NLog": {
"Extensions": {
"Assembly": "NLog.MailKit"
},
"internalLogLevel": "Info",
"internalLogFile": "./log/nlog-internal.log",
}
} ./log/nlog-internal.log output 2019-05-17 12:04:46.3607 Info Message Template Auto Format enabled |
Not work config json {
"NLog": {
"Extensions": {
"Assembly": "NLog.MailKit"
},
"internalLogLevel": "Info",
"internalLogFile": "./log/nlog-internal.log",
}
} Is work json config {
"NLog": {
"Extensions": {
"mailKit": {
"Assembly": "NLog.MailKit"
}
}
}
} |
The local alias of the extension can be random (ex "mailkit"). But I like this better: "Extensions": {
"NLog.MailKit": {
"Assembly": "NLog.MailKit"
}
}, Updated the example config in #263 |
Created a wiki-page, instead of having the example json-config in a PR: https://github.com/NLog/NLog.Extensions.Logging/wiki/Json-NLog-Config |
Type (choose one): Question
NLog version: (e.g. 4.6.3)
NLog.Extensions.Logging version: (e.g. 1.5.0)
NLog.Web.AspNetCore version: (e.g. 4.8.1)
Platform: .Net 4.5 / .NET Core 1 / .NET Core 2
With the support of loading configuration from Microsoft.Extensions.Configuration in 1.5.0 what is the current limitation for auto loading NLog extensions. The readme does not elaborate on why it won't work yet.
The text was updated successfully, but these errors were encountered: