public function getLogs($level = null)
	{
		// If no level was given, return all logs.
		if(is_null($level))
		{
			return $this->logs;
		}

		else
		{
			if(isset($this->logs[$level]))
			{
				return $this->logs[$level];
			}
		}

		// If the level doesn't exist, just return an empty array.
		//
		// @todo: check that the level exists, otherwise throw an exception. 
		return array();
	}
public function getLogs($level = null)
	{
		// If no level was given, return all logs.
		if(is_null($level))
		{
			return $this->logs;
		}

		else
		{
			if(isset($this->logs[$level]))
			{
				return $this->logs[$level];
			}
		}

		// If the level doesn't exist, just return an empty array.
		//
		// @todo: check that the level exists, otherwise throw an exception. 
		return array();
	}
public function getLogs ( $ level = null ) { // If no level was given, return all logs. if ( is_null ( $ level ) ) { return $ this -> logs ; } else { if ( isset ( $ this -> logs [ $ level ] ) ) { return $ this -> logs [ $ level ] ; } } // If the level doesn't exist, just return an empty array. // // @todo: check that the level exists, otherwise throw an exception.  return array ( ) ; }
Retrieve the logs for the matching level.

@param  string  $level
@return array
Retrieve the logs for the matching level .