summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-07-05 22:59:42 +0200
committerBart Visscher <bartv@thisnet.nl>2013-08-28 17:11:43 +0200
commit62560ef859a459542af50dd1905bdf8828a1d142 (patch)
tree9caf52c476a2eb98bdad75674535944bb1d01d8e
parent594a2af75af8d350965d11c1e77f12f1ebae456f (diff)
downloadnextcloud-server-62560ef859a459542af50dd1905bdf8828a1d142.tar.gz
nextcloud-server-62560ef859a459542af50dd1905bdf8828a1d142.zip
Add description to log rotate class
-rw-r--r--lib/log/rotate.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/log/rotate.php b/lib/log/rotate.php
index d79fd40342c..3b976d50dce 100644
--- a/lib/log/rotate.php
+++ b/lib/log/rotate.php
@@ -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) {