Musician Logic shocked onlookers at the 2018 Grammys on Sunday by taking a stand, following his show-closing performance, against President Trump's latest ignorant comments.

"You are not a sh*ithole," Logic proclaimed as he wrapped up his performance, closing the show in explosive fashion. The reference was to Trump's latest inflammatory comments in relation to countries such as Haiti and El Salvador, which the President reportedly described as "sh*tholes" in the midst of a cabinet meeting on immigration.

Logic performed his hit song "1-800-273-8255" off his third album Everybody, alongside Alessia Cara and Khalid. The swear word was bleeped on the CBS telecast.

Variety editor Cynthia Littleton tweeted that the reaction in the room was unanimously positive.

Logic was nominated for two Grammys for Song of the Year and Best Music Video, his very first nominations. Its title is the contact number for the National Suicide Prevention Line.

The rapper gave a big speech about the importance of equality, with the "sh*thole" line following on from another. He revealed how The Recording Academy originally requested a more formal speech, but Logic decided to do it his own way.

"I didn't want to just spew out anything, I wanted it come from the heart. I'm not this prophetic dude, I just want to make music and have fun, however, I have a power that a lot of people in this world don't," he said. "I've been given a stage and I thought that I could use this power to spread positivity and a positive message."

"Everybody is beautiful and the world is equal and we need to fight towards that. I'm not a politician but if that man can call those beautiful places 'sh*tholes', I can stand up and say that they're not. And that they're amazing," he added in relation to his choice of wording.

Logic implored those gathered at the Awards to embrace love instead of hate, praising women and minorities. He encouraged everybody to stand up and use their voices to fight for what's right.

The rapper wasn't the only one taking a stand at the Grammys, as U2's Bono shouted out in a similar way during the band's performance of "Get Out Of Your Own Way."

"Blessed are the sh*thole countries, for they gave us the American Dream," he said.

Much like Logic, he was censored for the swear word already made infamous by President Trump.