Skip to:
Content
Pages
Categories
Search
Top
Bottom

Rotating log files

  • @klauskuplen

    Member

    Hi,

    I’m setting up a bbpress instance and noticed that the log files have to exist otherwise no logging takes place. This makes my beloved log file rotating impossible.

    But if i edit class.bp-log.php and insert the following after lines in set_filename at about line 143

    if (! file_exists($_filename)) {

    @touch ($_filename);

    }

    This allowes me to do nice things like configure log files to

    define( 'BB_LOG_FILENAME', $global_log_dir . 'bbpress-' . date("Y-m-d") . ".log");

  • You must be logged in to reply to this topic.
Skip to toolbar