src/mako/database/ConnectionManager.php
public function getLogs(bool $groupedByConnection = true): array
	{
		$logs = [];

		if($groupedByConnection)
		{
			foreach($this->connections as $connection)
			{
				$logs[$connection->getName()] = $connection->getLog();
			}
		}
		else
		{
			foreach($this->connections as $connection)
			{
				$logs = array_merge($logs, $connection->getLog());
			}
		}

		return $logs;
	}
public function getLogs(bool $groupedByConnection = true): array
	{
		$logs = [];

		if($groupedByConnection)
		{
			foreach($this->connections as $connection)
			{
				$logs[$connection->getName()] = $connection->getLog();
			}
		}
		else
		{
			foreach($this->connections as $connection)
			{
				$logs = array_merge($logs, $connection->getLog());
			}
		}

		return $logs;
	}
public function getLogs ( bool $ groupedByConnection = true ) : array { $ logs = [ ] ; if ( $ groupedByConnection ) { foreach ( $ this -> connections as $ connection ) { $ logs [ $ connection -> getName ( ) ] = $ connection -> getLog ( ) ; } } else { foreach ( $ this -> connections as $ connection ) { $ logs = array_merge ( $ logs , $ connection -> getLog ( ) ) ; } } return $ logs ; }
Returns the query log for all connections.

@param  bool  $groupedByConnection Group logs by connection?
@return array
Returns the query log for all connections .