Playback logging add Start time and rename when log size exceeds 512k

renames to playback_nnnn.log

you won't get the message when first enabling logging since it
happens at start-up..

Change-Id: I58ca65a48deff7c5bb1f93c3d86d9ee9e19f3f2e
This commit is contained in:
William Wilgus 2025-02-16 20:05:52 -05:00 committed by William Wilgus
parent 64d8fc7c0c
commit 731f3fd8be
2 changed files with 64 additions and 16 deletions

View file

@ -332,8 +332,12 @@ you to configure settings related to audio playback.
Devices without a Real Time Clock will use current system tick.
Tracks played for a very short duration < 1 second will not be recorded
to minimize disk access while skipping quickly through songs.
You should periodically delete this log as excessive file sizes may cause
decreased device performace see \setting{LastFm Scrobbler} plugin.
\note {When the device is started a comment will be written to the log,
devices with Real Time Clock will record the date and time as well.
When the log gets too large (\textasciitilde 1500 tracks) it will be split into playback\_nnnn.log
where nnnn is 0001-9999}
see \setting{LastFm Scrobbler} plugin.
\begin{verbatim}
the log can be found under '/.rockbox/playback.log'
\end{verbatim}