PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Mouse Without Borders: Excessive Logging

Open towiat opened this issue 9 months ago • 1 comments

Microsoft PowerToys version

0.89.0

Installation method

WinGet

Running as admin

Yes

Area(s) with issue?

Mouse Without Borders

Steps to reproduce

Coincidentally, I noticed that MWB creates log files in three different locations:

  1. One log file per day named Log_YYYY-MM-DD.txt in the folder ~\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\Logs\0.89.0.0
  2. Another log file per day named mouseWithoutBorders-log_YYYY-MM-DD.txt in the folder ~\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\LogsModuleInterface
  3. Several log files per day in the folder C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\Logs\0.89.0.0\

Also, there doesn't seem to be a process that cleans up these logs from time to time, so I had already collected several hundred of these files.

The files that I checked contained only INFO level messages, so it is questionable whether they should be logged by default anyway.

✔️ Expected Behavior

  1. MWB should write logs to only one folder (ideally not the Windows system folder?)
  2. MWB should have some cleanup process that removes logs periodically (e. g. logs older than 30 days are removed at startup?)

❌ Actual Behavior

No response

Other Software

No response

towiat avatar Mar 10 '25 18:03 towiat

We should at least remove the ones from the old version first — yes, and also inspect the logs to see whether all of them are worth logging.

vanzue avatar Apr 29 '25 06:04 vanzue