Completely clear Engine.log [SOLVED]

I noticed that even if I hit the Clear button at the top of the Engine.log window
image

the list comes back once I close the window and open it again.
Last night I cleared the list and this morning I saw that a huge list again, all the way back to Jan 21, 2024.

Is there a way to completely initialize this list?


EDIT: Found it. The Clear button just clears the view, not the actual file's content, so I had to open the file using TextEdit and delete the entries manually. It was also suggested one of the following shell scripts:
echo "" | sudo tee /Users/username/Library/Logs/Keyboard Maestro/Engine.log > /dev/null
or
sudo sh -c 'echo "" > /Users/username/Library/Logs/Keyboard Maestro/Engine.log'

You could also just delete the file in Finder; Keyboard Maestro will recreate it if it's missing.

-rob.

1 Like

Oh that's also clever. Thanks! :slight_smile: