protected function _log($type='error', $message)
	{
		if (!$message)
		{
			return;
		}

		if (\App::get('config')->get('debug'))
		{
			$message = '[' . \App::get('request')->getVar('REQUEST_URI', '', 'server') . '] [' . $message . ']';
		}

		$type = strtolower($type);
		if (!in_array($type, array('error', 'debug', 'critical', 'warning', 'notice', 'alert', 'emergency', 'info')))
		{
			return;
		}

		$logger = \Log::getRoot();
		$logger->$type($message);
	}
protected function _log($type='error', $message)
	{
		if (!$message)
		{
			return;
		}

		if (\App::get('config')->get('debug'))
		{
			$message = '[' . \App::get('request')->getVar('REQUEST_URI', '', 'server') . '] [' . $message . ']';
		}

		$type = strtolower($type);
		if (!in_array($type, array('error', 'debug', 'critical', 'warning', 'notice', 'alert', 'emergency', 'info')))
		{
			return;
		}

		$logger = \Log::getRoot();
		$logger->$type($message);
	}
protected function _log ( $ type = 'error' , $ message ) { if ( ! $ message ) { return ; } if ( \ App :: get ( 'config' ) -> get ( 'debug' ) ) { $ message = '[' . \ App :: get ( 'request' ) -> getVar ( 'REQUEST_URI' , '' , 'server' ) . '] [' . $ message . ']' ; } $ type = strtolower ( $ type ) ; if ( ! in_array ( $ type , array ( 'error' , 'debug' , 'critical' , 'warning' , 'notice' , 'alert' , 'emergency' , 'info' ) ) ) { return ; } $ logger = \ Log :: getRoot ( ) ; $ logger -> $ type ( $ message ) ; }
Log an error message

@param   string  $message  Message type to log
@param   string  $message  Message to log
@return  void
Log an error message