[GH-ISSUE #774] Disable or change the location of log files #1396

Closed
opened 2026-03-14 14:39:08 +03:00 by kerem · 3 comments
Owner

Originally created by @acuteenvy on GitHub (Jul 14, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/774

Is your feature already implemented in the latest master?
Please go through the Features README page to make sure your request feature hasn't been implemented.

It isn't.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.

spotify_player creates log and backtrace files in its cache directory each time it's started. These files pile up quickly and need to be manually removed.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Some kind of CLI flag/config option to move and/or disable log files. I know that --cache-folder exists, but that moves the entire cache, including the credentials.

It would also be nice if the logs were stored in a temporary directory by default or at least cleaned up every once in a while.

Originally created by @acuteenvy on GitHub (Jul 14, 2025). Original GitHub issue: https://github.com/aome510/spotify-player/issues/774 **Is your feature already implemented in the latest `master`?** Please go through the [Features README page](https://github.com/aome510/spotify-player?tab=readme-ov-file#features) to make sure your request feature hasn't been implemented. It isn't. **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. `spotify_player` creates log and backtrace files in its cache directory each time it's started. These files pile up quickly and need to be manually removed. **Describe the solution you'd like** A clear and concise description of what you want to happen. Some kind of CLI flag/config option to move and/or disable log files. I know that `--cache-folder` exists, but that moves the entire cache, including the credentials. It would also be nice if the logs were stored in a temporary directory by default or at least cleaned up every once in a while.
kerem 2026-03-14 14:39:08 +03:00
Author
Owner

@aome510 commented on GitHub (Jul 26, 2025):

Should be straightforward to allow the log file format to be configurable. Currently, it has a fixed format as in github.com/aome510/spotify-player@f408b48780/spotify_player/src/main.rs (L40-L43)

<!-- gh-comment-id:3123356304 --> @aome510 commented on GitHub (Jul 26, 2025): Should be straightforward to allow the log file format to be configurable. Currently, it has a fixed format as in https://github.com/aome510/spotify-player/blob/f408b4878004d279a4d47ae4a8e453c5c5a196c7/spotify_player/src/main.rs#L40-L43
Author
Owner

@acuteenvy commented on GitHub (Jul 27, 2025):

I can work on this, but what would be more appropriate to change the path in your opinion? Command-line flag, config option, something else?

<!-- gh-comment-id:3124448405 --> @acuteenvy commented on GitHub (Jul 27, 2025): I can work on this, but what would be more appropriate to change the path in your opinion? Command-line flag, config option, something else?
Author
Owner

@aome510 commented on GitHub (Jul 27, 2025):

Thanks for taking this. Should be a config option in app.toml. See example file for more references.

<!-- gh-comment-id:3124531399 --> @aome510 commented on GitHub (Jul 27, 2025): Thanks for taking this. Should be a config option in `app.toml`. See [example file](https://github.com/aome510/spotify-player/blob/master/examples/app.toml) for more references.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#1396
No description provided.