예제 #1
0
파일: ALogger.php 프로젝트: vman747/virex
 public static function logStats()
 {
     if (!self::$debug) {
         return true;
     }
     if (!ALogger::end_step()) {
         ALogger::empty_line();
     }
     $execTime = number_format(microtime(true) - self::$startTime, 2) . 's';
     $msg = "Time: " . self::color(self::CWHITE, $execTime) . "; Memory: " . self::color(self::CWHITE, FileHelper::formatSize(memory_get_peak_usage(true)));
     self::$show_time_on_logs = false;
     self::log($msg, null, 'debug', false);
     list($ok, $errors) = self::getStats();
     $errors = self::color(self::CLIGHT_RED, $errors);
     $ok = self::color(self::CLIGHT_GREEN, $ok);
     self::log('Errors: ' . $errors . '; Succesfull: ' . $ok, null, 'debug', false);
     self::empty_line();
 }