C# Serilog Thread Id does not correspond with thread id in process explorer

371 views Asked by At

I use an enriched serilog configuration that logs the thread id. This results in logging the thread id in a 2 digit number:

enter image description here

Now I want to check a high CPU issue and which thread is causing it. For this I open process explorer, but there, the threads id's are shown as 4 digit keys:

enter image description here

Why are they different? Is it possible to log the id in 4 digit way, or show the 2 digit thread id in process explorer? Or can the somehow be translated?

0

There are 0 answers