jpasqua / VisibleTesla

Java App to monitor and Control the Tesla Model S
125 stars 41 forks source link

Roll log files #65

Closed jpasqua closed 10 years ago

jpasqua commented 10 years ago

Right now the log file is overwritten every time the app runs. Do something better than this. At a minimum keep one old log file.

jpasqua commented 10 years ago

Added a mechanism to keep a set number of previous log files around. The log files are named: visibletesla-NN.log where NN is a 2 digit number that increases from 00 (the newest log file) to 03 (the oldest log file). At the moment, the max number of log files is hard coded. It doesn't seem worth a preference but that would be easy to add.

Each time the app is started, visibletesla-03.log is deleted if it exists. The other log files have their generation number incremented. 02 becomes 03, 01 becomes 02, and 00 becomes 01.

jpasqua commented 10 years ago

Released in 0.25.07