Custom logout button

Hi, how can i make a custom logout button with code?