src/Shell/QueueShell.php
protected function _log($message, $pid = null, $addDetails = true) {
		if (!Configure::read('Queue.log')) {
			return;
		}

		if ($addDetails) {
			$timeNeeded = $this->_timeNeeded();
			$memoryUsage = $this->_memoryUsage();
			$message .= ' [' . $timeNeeded . ', ' . $memoryUsage . ']';
		}

		if ($pid) {
			$message .= ' (pid ' . $pid . ')';
		}
		Log::write('info', $message, ['scope' => 'queue']);
	}
protected function _log($message, $pid = null, $addDetails = true) {
		if (!Configure::read('Queue.log')) {
			return;
		}

		if ($addDetails) {
			$timeNeeded = $this->_timeNeeded();
			$memoryUsage = $this->_memoryUsage();
			$message .= ' [' . $timeNeeded . ', ' . $memoryUsage . ']';
		}

		if ($pid) {
			$message .= ' (pid ' . $pid . ')';
		}
		Log::write('info', $message, ['scope' => 'queue']);
	}
protected function _log ( $ message , $ pid = null , $ addDetails = true ) { if ( ! Configure :: read ( 'Queue.log' ) ) { return ; } if ( $ addDetails ) { $ timeNeeded = $ this -> _timeNeeded ( ) ; $ memoryUsage = $ this -> _memoryUsage ( ) ; $ message .= ' [' . $ timeNeeded . ', ' . $ memoryUsage . ']' ; } if ( $ pid ) { $ message .= ' (pid ' . $ pid . ')' ; } Log :: write ( 'info' , $ message , [ 'scope' => 'queue' ] ) ; }
Timestamped log.

@param string $message Log type
@param string|null $pid PID of the process
@param bool $addDetails
@return void
Timestamped log .