well, apache_note does work, it just doesn't work the way I thought it did.
One thing I wanted to log was the username and filename every time a logged-in user downloaded a file.
I edited client_downloads.php, and added three lines:
PHP Code:
ini_set( 'zlib.output_compression','Off' );
}
// MY ADDED LINES: Log the username and file to Apache
apache_note('accountID',$_SWIFT["user"]["primaryemail"]);
apache_note('downloadFileName',$_downloaditem["filename"]);
// Get the file extension
Then, in my Apache httpd.conf, I added the following custom LogFormat line:
Code:
LogFormat "%h %l %{accountID}n %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{downloadFileName}n\"" myCustomLogFormat That was pretty much it.