]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add description to log rotate class
authorBart Visscher <bartv@thisnet.nl>
Fri, 5 Jul 2013 20:59:42 +0000 (22:59 +0200)
committerBart Visscher <bartv@thisnet.nl>
Wed, 28 Aug 2013 15:11:43 +0000 (17:11 +0200)
lib/log/rotate.php

index d79fd40342cc415f833ad5bfc0ae4abc7e977762..3b976d50dceb66a3003f331fde2fa2a93881f170 100644 (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) {