Core/Logger.php
public function log($logData)
    {
        $handle = fopen($this->getLogFilePath(), "a+");
        if ($handle !== false) {
            if (is_string($logData)) {
                parse_str($logData, $result);
            } else {
                $result = $logData;
            }

            if (is_array($result)) {
                foreach ($result as $key => $value) {
                    if (is_string($value)) {
                        $result[$key] = urldecode($value);
                    }
                }
            }

            fwrite($handle, "======================= " . $this->getTitle() . " [" . date("Y-m-d H:i:s") . "] ======================= #\n\n");
            fwrite($handle, "SESS ID: " . $this->getLoggerSessionId() . "\n");
            fwrite($handle, trim(var_export($result, true)) . "\n\n");
            fclose($handle);
        }

        //resetting log title
        $this->setTitle('');
    }
public function log($logData)
    {
        $handle = fopen($this->getLogFilePath(), "a+");
        if ($handle !== false) {
            if (is_string($logData)) {
                parse_str($logData, $result);
            } else {
                $result = $logData;
            }

            if (is_array($result)) {
                foreach ($result as $key => $value) {
                    if (is_string($value)) {
                        $result[$key] = urldecode($value);
                    }
                }
            }

            fwrite($handle, "======================= " . $this->getTitle() . " [" . date("Y-m-d H:i:s") . "] ======================= #\n\n");
            fwrite($handle, "SESS ID: " . $this->getLoggerSessionId() . "\n");
            fwrite($handle, trim(var_export($result, true)) . "\n\n");
            fclose($handle);
        }

        //resetting log title
        $this->setTitle('');
    }
public function log ( $ logData ) { $ handle = fopen ( $ this -> getLogFilePath ( ) , "a+" ) ; if ( $ handle !== false ) { if ( is_string ( $ logData ) ) { parse_str ( $ logData , $ result ) ; } else { $ result = $ logData ; } if ( is_array ( $ result ) ) { foreach ( $ result as $ key => $ value ) { if ( is_string ( $ value ) ) { $ result [ $ key ] = urldecode ( $ value ) ; } } } fwrite ( $ handle , "======================= " . $ this -> getTitle ( ) . " [" . date ( "Y-m-d H:i:s" ) . "] ======================= #\n\n" ) ; fwrite ( $ handle , "SESS ID: " . $ this -> getLoggerSessionId ( ) . "\n" ) ; fwrite ( $ handle , trim ( var_export ( $ result , true ) ) . "\n\n" ) ; fclose ( $ handle ) ; } //resetting log title $ this -> setTitle ( '' ) ; }
Writes log message.

@param mixed $logData logger data
Writes log message .