You are here

public function PHPExcel_CalcEngine_Logger::writeDebugLog in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CalcEngine/Logger.php \PHPExcel_CalcEngine_Logger::writeDebugLog()

* Write an entry to the calculation engine debug log

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/CalcEngine/Logger.php, line 119

Class

PHPExcel_CalcEngine_Logger
PHPExcel_CalcEngine_Logger

Code

public function writeDebugLog() {

  //	Only write the debug log if logging is enabled
  if ($this->_writeDebugLog) {
    $message = implode(func_get_args());
    $cellReference = implode(' -> ', $this->_cellStack
      ->showStack());
    if ($this->_echoDebugLog) {
      echo $cellReference, $this->_cellStack
        ->count() > 0 ? ' => ' : '', $message, PHP_EOL;
    }
    $this->_debugLog[] = $cellReference . ($this->_cellStack
      ->count() > 0 ? ' => ' : '') . $message;
  }
}