public function init($logFilePrefix) {
    self::$logFileName = date('Y-m-d_H-i-s') . '-' . ucfirst($logFilePrefix) . '-' . md5(time()) . '.log';
    $ssl = null;

    $this->writeLog(sprintf($this->debugStrings['start'], date('Y-m-d H:i:s')));

    if (in_array('curl', get_loaded_extensions())) {
      $curl_version = curl_version();
      $curl = $curl_version['version'];
      $ssl = $curl_version['ssl_version'];
    }
    else {
      $curl = 'no';
    }

    if (!$ssl && in_array('openssl', get_loaded_extensions())) {
      $ssl = 'yes';
    }

    if (!$ssl) {
      $ssl = 'no';
    }

    $this->writeLog(sprintf($this->debugStrings['php-ini'], PHP_VERSION, $curl, $ssl));
  }
public function init($logFilePrefix) {
    self::$logFileName = date('Y-m-d_H-i-s') . '-' . ucfirst($logFilePrefix) . '-' . md5(time()) . '.log';
    $ssl = null;

    $this->writeLog(sprintf($this->debugStrings['start'], date('Y-m-d H:i:s')));

    if (in_array('curl', get_loaded_extensions())) {
      $curl_version = curl_version();
      $curl = $curl_version['version'];
      $ssl = $curl_version['ssl_version'];
    }
    else {
      $curl = 'no';
    }

    if (!$ssl && in_array('openssl', get_loaded_extensions())) {
      $ssl = 'yes';
    }

    if (!$ssl) {
      $ssl = 'no';
    }

    $this->writeLog(sprintf($this->debugStrings['php-ini'], PHP_VERSION, $curl, $ssl));
  }
public function init ( $ logFilePrefix ) { self :: $ logFileName = date ( 'Y-m-d_H-i-s' ) . '-' . ucfirst ( $ logFilePrefix ) . '-' . md5 ( time ( ) ) . '.log' ; $ ssl = null ; $ this -> writeLog ( sprintf ( $ this -> debugStrings [ 'start' ] , date ( 'Y-m-d H:i:s' ) ) ) ; if ( in_array ( 'curl' , get_loaded_extensions ( ) ) ) { $ curl_version = curl_version ( ) ; $ curl = $ curl_version [ 'version' ] ; $ ssl = $ curl_version [ 'ssl_version' ] ; } else { $ curl = 'no' ; } if ( ! $ ssl && in_array ( 'openssl' , get_loaded_extensions ( ) ) ) { $ ssl = 'yes' ; } if ( ! $ ssl ) { $ ssl = 'no' ; } $ this -> writeLog ( sprintf ( $ this -> debugStrings [ 'php-ini' ] , PHP_VERSION , $ curl , $ ssl ) ) ; }
Initialisation of the debug log, stores information about the environment.

@param string $logFilePrefix Is prefixed to the log file name
Initialisation of the debug log stores information about the environment .