Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit the size of wakatime.log file #1063

Closed
YouKnow-sys opened this issue Jul 11, 2024 · 7 comments · Fixed by #1125
Closed

Limit the size of wakatime.log file #1063

YouKnow-sys opened this issue Jul 11, 2024 · 7 comments · Fixed by #1125
Assignees

Comments

@YouKnow-sys
Copy link

seems like this file can get as big as it want, for example if you have Wakatime installed for some time if go to %USERPROFILE%\.wakatime in windows you can see a log file named wakatime.log, the thing is seems like this file don't have any limit on how big it can get... I mean the biggest that it got in my system is more then 400MB, its just too much for a log file...
I recommend putting some kind of cap on the log file size or maybe even do some kind of rotating...

@gandarez gandarez transferred this issue from wakatime/vscode-wakatime Jul 11, 2024
@gandarez
Copy link
Member

@alanhamlett wdyt? Should we keep only x lines or x size?

@alanhamlett
Copy link
Member

Yea we should limit it's size. My wakatime.log file is 2.2M right now. @YouKnow-sys curious if you have debug mode enabled? That would cause the log to grow faster than normal.

What's a good size to cap it at? How about 100M? After that we rotate the log to wakatime.log.N and delete log files with N > 4.

@YouKnow-sys
Copy link
Author

Yea we should limit it's size. My wakatime.log file is 2.2M right now. @YouKnow-sys curious if you have debug mode enabled? That would cause the log to grow faster than normal.

What's a good size to cap it at? How about 100M? After that we rotate the log to wakatime.log.N and delete log files with N > 4.

I didn't change any settings related to my wakatime installation, is it on debug by default?
And I think 50MB for each log file would be better (still big but more manageable)
The reason that I recommend 50MB is, it's easier to share if needed, uploading 100MB just to share the log isn't very convenient.

@alanhamlett
Copy link
Member

I didn't change any settings related to my wakatime installation, is it on debug by default?

No, it's off by default.

@alanhamlett
Copy link
Member

50MB sounds good to me

@gandarez gandarez self-assigned this Jul 12, 2024
@gandarez gandarez removed the triage label Jul 12, 2024
@gandarez
Copy link
Member

Started working on that

@YouKnow-sys
Copy link
Author

I didn't change any settings related to my wakatime installation, is it on debug by default?

No, it's off by default.

then no, Im not on debug mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants