aboutsummaryrefslogtreecommitdiff
path: root/constants.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-12-10 21:31:41 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-12-10 21:58:24 +0100
commitb1c317a253445a6458f1263c1b622a788cc7cd0e (patch)
treed348ddbc62a98e53b50ca29cba352640b1aeb54d /constants.php
parent452886ea3ac4b91bc72952df659fb53ae7807c22 (diff)
Log rotation, use Minz_Log, new log constants
ADMIN_LOG, API_LOG, PSHB_LOG
Diffstat (limited to 'constants.php')
-rw-r--r--constants.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/constants.php b/constants.php
index b48c1be96..576be09b9 100644
--- a/constants.php
+++ b/constants.php
@@ -8,8 +8,8 @@ define('FRESHRSS_USERAGENT', 'FreshRSS/' . FRESHRSS_VERSION . ' (' . PHP_OS . ';
// PHP text output compression http://php.net/ob_gzhandler (better to do it at Web server level)
define('PHP_COMPRESSION', false);
-// maximum log file size, before it will be purged (defaults to 512000 = 500kB)
-define('MAX_LOG_SIZE', 512000);
+// Maximum log file size in Bytes, before it will be divided by two
+define('MAX_LOG_SIZE', 1048576);
// Constantes de chemins
define('FRESHRSS_PATH', dirname(__FILE__));
@@ -22,7 +22,10 @@ define('FRESHRSS_PATH', dirname(__FILE__));
define('DATA_PATH', FRESHRSS_PATH . '/data');
define('UPDATE_FILENAME', DATA_PATH . '/update.php');
define('USERS_PATH', DATA_PATH . '/users');
+ define('ADMIN_LOG', USERS_PATH . '/_/log.txt');
+ define('API_LOG', USERS_PATH . '/_/log_api.txt');
define('CACHE_PATH', DATA_PATH . '/cache');
+ define('PSHB_LOG', USERS_PATH . '/_/log_pshb.txt');
define('PSHB_PATH', DATA_PATH . '/PubSubHubbub');
define('LIB_PATH', FRESHRSS_PATH . '/lib');