Need a Logout link for WP/BP please

I’ve got WP with Buddypress and I’d like to put a login menu item – I’ve tried /wp-login.php?action=logout but it seems to hang with “WordPress failure notice” on the tab – is there a better logout url to use please? Thanks!