serilog / serilog-enrichers-process

The process enricher for Serilog.
Apache License 2.0
30 stars 10 forks source link

Process (& Thread) Enrichers not working with self-contained/publishSingleFile apps #21

Closed scissorrunner closed 1 year ago

scissorrunner commented 1 year ago

I noticed that the ProcessId and ThreadId properties are blank in the following configuration:

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?

nblumhardt commented 1 year ago

https://github.com/serilog/serilog-settings-configuration/#net-50-onwards-single-file-applications

HTH!

scissorrunner commented 1 year ago

https://github.com/serilog/serilog-settings-configuration/#net-50-onwards-single-file-applications

HTH!

Thanks - that was it!