diff options
| author | 2017-12-11 19:58:09 +0100 | |
|---|---|---|
| committer | 2017-12-11 19:58:09 +0100 | |
| commit | 27c3092da42854772100101b3ba9a7507c86f3a1 (patch) | |
| tree | f52125dd6429e0c2aee2112804feebf2e5f7b08d /constants.php | |
| parent | c722b2cdb7a23ddd37e4cee8b612d4896139038d (diff) | |
| parent | 3ddbff6bd91ae16edfe2259ebd1bea04c86c7601 (diff) | |
Merge pull request #1712 from kevinpapst/logfilesize
Prevent logfile from growing unlimited
Diffstat (limited to 'constants.php')
| -rw-r--r-- | constants.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/constants.php b/constants.php index 9c647eb74..576be09b9 100644 --- a/constants.php +++ b/constants.php @@ -8,6 +8,9 @@ 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 in Bytes, before it will be divided by two +define('MAX_LOG_SIZE', 1048576); + // Constantes de chemins define('FRESHRSS_PATH', dirname(__FILE__)); @@ -19,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'); |
