Add description to log rotate class

This commit is contained in:
Bart Visscher 2013-07-05 22:59:42 +02:00
parent 594a2af75a
commit 62560ef859
1 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,13 @@
namespace OC\Log;
/**
* This rotates the current logfile to a new name, this way the total log usage
* will stay limited and older entries are available for a while longer. The
* total disk usage is twice LOG_SIZE_LIMIT.
* For more professional log management set the 'logfile' config to a different
* location and manage that with your own tools.
*/
class Rotate extends \OC\BackgroundJob\Job {
const LOG_SIZE_LIMIT = 104857600; // 100 MB
public function run($logFile) {