I noticed that the ProcessId and ThreadId properties are blank in the following configuration:
net6.0-windows
PublishSingleFile=true
Using Serilog.Settings.Configuration and appsettings.json to reference enrichers (not setup in code) via "Enrich": [ "WithProcessId", "WithThreadId" ],
The logging works correct (properties are there) if I copy these enricher assemblies into the executable directory (I verified that they are also part of the packaged executable via the sfextract utility, so they weren't "trimmed" out in publishing)
As a workaround, I'm deploying these two again into the installation directory.
I noticed that the ProcessId and ThreadId properties are blank in the following configuration:
"Enrich": [ "WithProcessId", "WithThreadId" ],
The logging works correct (properties are there) if I copy these enricher assemblies into the executable directory (I verified that they are also part of the packaged executable via the sfextract utility, so they weren't "trimmed" out in publishing)
As a workaround, I'm deploying these two again into the installation directory.
Is this a known/expected limitation?