StefanKert / BuildVision

A Visual Studio extension to visualize the building process.
MIT License
261 stars 43 forks source link

Massive 'extension.log' file in %localappdata%\BuildVision #115

Open nitz opened 2 years ago

nitz commented 2 years ago

Hello!

My hard drive was getting close to full so I was cleaning up large files where I could. I found an 8.7 Gigabyte file: %localappdata%\BuildVision\extension.log.

It looks like it contains logs dating back to when I installed the extension (~10 May 2021) to current.

I definitely know the desire to keep logs, but a nearly 9 gigabyte file after 6-7 months of use for an extension is a bit excessive, I feel.

Perhaps this logging functionality could be optional and opt-in, or at the very least forced to be a more reasonable size?

Cheers

andrei2popa commented 1 year ago

Is it possible to delete the file without any unintended consequences? tia

StefanKert commented 4 months ago

Hi folks,

@andrei2popa yep it is absolutely possible to delete it. The .log file only contains log data.

@nitz actually growing that file that large is really not intended. I basically didn't think about the fact that it could get that large. Keeping those logs for such a long time doesn't make any sense, especially since most of the log is informational only. I will check how others are solving that and try to integrate a cleanup mechanism in a future version of BuildVision. Thanks :)