Flag to enable/disable logging

Set flag in index.php that would enable or disable logging. Also make sure that logging errors such as permissions to write files are reported using the API Con Mngr error reporting system. related to #33