Closed ATLSAPI closed 5 years ago
Hi @tmds, first I want to say this library has been great for us.
Thanks!
By adding [ProviderAlias("Journal")] for example, we can simplify above config to below
Yes, that's nicer.
I'm happy to create a pull request if that helps?
Please do.
Please do.
I'll do that. With regards to versioning do I need to increment (0.5.1 as its a patch) or shall I leave it you/some automated build process you may have in place?
Yes, please update the build number in:
You can set it to 0.6.0.
Cool. I've updated #34 now
Fixed in https://github.com/tmds/Tmds.Systemd/pull/34. Available in 0.6.0.
Hi @tmds, first I want to say this library has been great for us. Now to the issue.
JournalLoggerProvider is missing the [ProviderAlias] attribute (introduced in NET Core 2.0), and therefore uses the default logging configuration unless we use the fully qualified name Tmds.Systemd.Logging.JournalLoggerProvider.
The goal is to reuse the provider targeted logging configuration section of appsettings.json.
Currently, to achieve that we need to specify the full namespace of JournalLoggerProvider as follows:
By adding
[ProviderAlias("Journal")]
for example, we can simplify above config to belowI'm happy to create a pull request if that helps?