mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
log file pointer can be set by calling a method
This commit is contained in:
parent
b049537220
commit
8545b89d95
|
@ -222,12 +222,21 @@ class SeedDMS_Core_DatabaseAccess {
|
|||
* Destructor of SeedDMS_Core_DatabaseAccess
|
||||
*/
|
||||
function __destruct() { /* {{{ */
|
||||
if($this->_logfp) {
|
||||
if($this->_logfile && $this->_logfp) {
|
||||
fwrite($this->_logfp, microtime()." END --------------------------------------------\n");
|
||||
fclose($this->_logfp);
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Set the file pointer to a log file
|
||||
*
|
||||
* Once it is set, all queries will be logged into this file
|
||||
*/
|
||||
function setLogFp($fp) { /* {{{ */
|
||||
$this->_logfp = $fp;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Connect to database
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user