Windows %tempfolder% bein bloated with trace files of unknown origin "LECLogsDir"
05:38 08 May 2026

My laptop has recently been running into issues (long logon times, general sluggishness). I checked the temp folder, which was around 8 GB. While the size is nothing out of the ordinary, cleaning it the traditional way turned out to be impossible due to over 2 million individual files being in the directory.

I discovered a massive folder inside my system's Temp directory called LECLogsDir. It contained over 1.5 million individual log files created between April 29th and April 30th, generated at time intervals of just 2-6 milliseconds.

I tried to temporarily mitigate the issue by force-deleting the folder via the terminal. After deleting a few hundred thousand, I decided to stop and archive the files in case there is something interesting in them. I would like to figure out the root cause so I can turn off this verbose trace logging or uninstall the offending software.

Here is a snippet from one of the log files:

SAM-LEC: trace [lec] [2026-04-30 07:47:08.417 +02:00] [Worker-XWCYE42B] [trace] starting read

Does anyone recognize this log format or the SAM-LEC / LECLogsDir naming convention? I'm trying to figure out which application, background service, or developer tool generates these files.

windows logging trace temporary-files