You can leave the logging disabled, but add into your code the ability to log and pass a parameter that overrides the enabled/disabled global flag.
* Add a message to the log file
* Handy for __destruct stuff, etc
*
* @access public
* @param string Message to add
* @param string Which file to add it to
* @param mixed False, or an array of vars to include in log
* @param bool Force log even if IPS_LOG_ALL is off - handy for on-the-fly debugging
* @param bool Unlink file before writing
* @return void
*/
static public function addLogMessage( $message, $file='debugLog', $array=FALSE, $force=FALSE, $unlink=FALSE ) /**